summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindPackageMode.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-08-15 22:30:07 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-08-15 22:30:51 (GMT)
commite552ae7cfd8d6b3dce51f61258ce4854db7c7fbc (patch)
tree8ff34fc5eebe507f70549379746491665496aa60 /Modules/CMakeFindPackageMode.cmake
parente589589ab18daabc863061fac515adc2b1ae8d55 (diff)
downloadCMake-e552ae7cfd8d6b3dce51f61258ce4854db7c7fbc.zip
CMake-e552ae7cfd8d6b3dce51f61258ce4854db7c7fbc.tar.gz
CMake-e552ae7cfd8d6b3dce51f61258ce4854db7c7fbc.tar.bz2
Dont check for -isysroot and -mmacosx-version on OSX in --find-package mode
Alex
Diffstat (limited to 'Modules/CMakeFindPackageMode.cmake')
-rw-r--r--Modules/CMakeFindPackageMode.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CMakeFindPackageMode.cmake b/Modules/CMakeFindPackageMode.cmake
index e4d085d..a8674aa 100644
--- a/Modules/CMakeFindPackageMode.cmake
+++ b/Modules/CMakeFindPackageMode.cmake
@@ -40,6 +40,12 @@ endif()
include(CMakeDetermineSystem)
+# short-cut some tests on Darwin, see Darwin-GNU.cmake:
+if("${CMAKE_SYSTEM_NAME}" MATCHES Darwin AND "${COMPILER_ID}" MATCHES GNU)
+ set(${CMAKE_${LANGUAGE}_HAS_ISYSROOT} 0 )
+ set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "")
+endif()
+
# Also load the system specific file, which sets up e.g. the search paths.
# This makes the FIND_XXX() calls work much better
include(CMakeSystemSpecificInformation)