summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-06-05 18:21:09 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-06-05 18:21:09 (GMT)
commit9f933ffb3a3fb173cff12d2c6cc747fb693a73aa (patch)
treefb8726d00053f6a77ad5aae7fcb6fce4a0cd32fe
parentb0a8bc364d583d282ffb27d87d60d6a67ba5d00d (diff)
parent8b2fb3310b4b8f1d218e479e3f5eafe04e8b8077 (diff)
downloadCMake-9f933ffb3a3fb173cff12d2c6cc747fb693a73aa.zip
CMake-9f933ffb3a3fb173cff12d2c6cc747fb693a73aa.tar.gz
CMake-9f933ffb3a3fb173cff12d2c6cc747fb693a73aa.tar.bz2
Merge topic 'fix-13261-allow-variable-overrides'
8b2fb33 Mac: Add guards to CMAKE_FIND_FRAMEWORK and CMAKE_FIND_APPBUNDLE defaults
-rw-r--r--Modules/Platform/Darwin-icc.cmake9
-rw-r--r--Modules/Platform/Darwin.cmake9
2 files changed, 12 insertions, 6 deletions
diff --git a/Modules/Platform/Darwin-icc.cmake b/Modules/Platform/Darwin-icc.cmake
index e675c0e..b592e5f 100644
--- a/Modules/Platform/Darwin-icc.cmake
+++ b/Modules/Platform/Darwin-icc.cmake
@@ -106,7 +106,9 @@ SET(CMAKE_Fortran_CREATE_SHARED_MODULE
# default to searching for frameworks first
-SET(CMAKE_FIND_FRAMEWORK FIRST)
+IF(NOT DEFINED CMAKE_FIND_FRAMEWORK)
+ SET(CMAKE_FIND_FRAMEWORK FIRST)
+ENDIF()
# set up the default search directories for frameworks
SET(CMAKE_SYSTEM_FRAMEWORK_PATH
~/Library/Frameworks
@@ -115,7 +117,9 @@ SET(CMAKE_SYSTEM_FRAMEWORK_PATH
/System/Library/Frameworks)
# default to searching for application bundles first
-SET(CMAKE_FIND_APPBUNDLE FIRST)
+IF(NOT DEFINED CMAKE_FIND_APPBUNDLE)
+ SET(CMAKE_FIND_APPBUNDLE FIRST)
+ENDIF()
# set up the default search directories for application bundles
SET(CMAKE_SYSTEM_APPBUNDLE_PATH
~/Applications
@@ -125,4 +129,3 @@ SET(CMAKE_SYSTEM_APPBUNDLE_PATH
INCLUDE(Platform/UnixPaths)
SET(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH} /sw/include)
SET(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH} /sw/lib)
-
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index a19bfe7..eff07b2 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -228,9 +228,10 @@ SET(CMAKE_CXX_CREATE_MACOSX_FRAMEWORK
"<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <LINK_FLAGS> -o <TARGET> <SONAME_FLAG> <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
-
# default to searching for frameworks first
-SET(CMAKE_FIND_FRAMEWORK FIRST)
+IF(NOT DEFINED CMAKE_FIND_FRAMEWORK)
+ SET(CMAKE_FIND_FRAMEWORK FIRST)
+ENDIF()
# set up the default search directories for frameworks
SET(CMAKE_SYSTEM_FRAMEWORK_PATH
~/Library/Frameworks
@@ -239,7 +240,9 @@ SET(CMAKE_SYSTEM_FRAMEWORK_PATH
/System/Library/Frameworks)
# default to searching for application bundles first
-SET(CMAKE_FIND_APPBUNDLE FIRST)
+IF(NOT DEFINED CMAKE_FIND_APPBUNDLE)
+ SET(CMAKE_FIND_APPBUNDLE FIRST)
+ENDIF()
# set up the default search directories for application bundles
SET(_apps_paths)
FOREACH(_path