cmake: set CMAKE_FIND_FRAMEWORK=last

This commit is contained in:
Matthew Bauer 2018-03-14 14:20:07 -05:00
parent 37f6b0ff9c
commit b99cae3931
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ cmakeConfigurePhase() {
cmakeFlags="-DCMAKE_STRIP=$(command -v $crossConfig-strip) $cmakeFlags" cmakeFlags="-DCMAKE_STRIP=$(command -v $crossConfig-strip) $cmakeFlags"
fi fi
# on macOS we want to prefer Unix-style headers to Frameworks
# because we usually do not package the framework
cmakeFlags="-DCMAKE_FIND_FRAMEWORK=last $cmakeFlags"
# This installs shared libraries with a fully-specified install # This installs shared libraries with a fully-specified install
# name. By default, cmake installs shared libraries with just the # name. By default, cmake installs shared libraries with just the
# basename as the install name, which means that, on Darwin, they # basename as the install name, which means that, on Darwin, they