Dont check for -isysroot and -mmacosx-version on OSX in --find-package mode

Alex
This commit is contained in:
Alex Neundorf 2011-08-16 00:30:07 +02:00
parent e589589ab1
commit e552ae7cfd
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ endif()
include(CMakeDetermineSystem) 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. # Also load the system specific file, which sets up e.g. the search paths.
# This makes the FIND_XXX() calls work much better # This makes the FIND_XXX() calls work much better
include(CMakeSystemSpecificInformation) include(CMakeSystemSpecificInformation)