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:36:27 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-03-14 14:36:27 -0500
commitbd9b17f762e22720612e8650737c3200b0dabb37 (patch)
tree1087d3e7fce238a1f9ba8b17c68556f64d88a293 /pkgs/development/tools/build-managers
parent8beb809fd1daca0f4e8b7807a05076ffbcc18c5f (diff)
downloadnixpkgs-bd9b17f762e22720612e8650737c3200b0dabb37.tar
nixpkgs-bd9b17f762e22720612e8650737c3200b0dabb37.tar.gz
nixpkgs-bd9b17f762e22720612e8650737c3200b0dabb37.tar.bz2
nixpkgs-bd9b17f762e22720612e8650737c3200b0dabb37.tar.lz
nixpkgs-bd9b17f762e22720612e8650737c3200b0dabb37.tar.xz
nixpkgs-bd9b17f762e22720612e8650737c3200b0dabb37.tar.zst
nixpkgs-bd9b17f762e22720612e8650737c3200b0dabb37.zip
cmake: correctly detect clang compiler on macOS
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 95822eec592..5053559bcca 100755
--- a/pkgs/development/tools/build-managers/cmake/setup-hook.sh
+++ b/pkgs/development/tools/build-managers/cmake/setup-hook.sh
@@ -55,6 +55,9 @@ cmakeConfigurePhase() {
     # we don't want our binaries to have a "minimum" OSX version
     cmakeFlags="-DCMAKE_OSX_DEPLOYMENT_TARGET= $cmakeFlags"
 
+    # correctly detect our clang compiler
+    cmakeFlags="-DCMAKE_POLICY_DEFAULT_CMP0025=NEW $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