summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-03-14 14:30:10 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-03-14 14:30:10 -0500
commitacbf439fef3de30956f78118b69b2804c9d8dcc2 (patch)
tree277a78d8433587f84481ae445e2b3142c071c84f /pkgs/development/tools/build-managers
parentb99cae3931d23f522c61b37d9d0f737372f5bf0c (diff)
downloadnixpkgs-acbf439fef3de30956f78118b69b2804c9d8dcc2.tar
nixpkgs-acbf439fef3de30956f78118b69b2804c9d8dcc2.tar.gz
nixpkgs-acbf439fef3de30956f78118b69b2804c9d8dcc2.tar.bz2
nixpkgs-acbf439fef3de30956f78118b69b2804c9d8dcc2.tar.lz
nixpkgs-acbf439fef3de30956f78118b69b2804c9d8dcc2.tar.xz
nixpkgs-acbf439fef3de30956f78118b69b2804c9d8dcc2.tar.zst
nixpkgs-acbf439fef3de30956f78118b69b2804c9d8dcc2.zip
cmake: disable detecting global macOS sdk
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rwxr-xr-xpkgs/development/tools/build-managers/cmake/setup-hook.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/cmake/setup-hook.sh b/pkgs/development/tools/build-managers/cmake/setup-hook.sh
index 4607453867f..b7a4ab3d6f0 100755
--- a/pkgs/development/tools/build-managers/cmake/setup-hook.sh
+++ b/pkgs/development/tools/build-managers/cmake/setup-hook.sh
@@ -48,6 +48,9 @@ cmakeConfigurePhase() {
     # because we usually do not package the framework
     cmakeFlags="-DCMAKE_FIND_FRAMEWORK=last $cmakeFlags"
 
+    # we never want to use the global macOS SDK
+    cmakeFlags="-DCMAKE_OSX_SYSROOT= $cmakeFlags"
+
     # This installs shared libraries with a fully-specified install
     # name. By default, cmake installs shared libraries with just the
     # basename as the install name, which means that, on Darwin, they