diff options
author | Charlie Sharpsteen <source@sharpsteen.net> | 2012-05-30 17:29:26 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-05-31 12:10:17 (GMT) |
commit | 8b2fb3310b4b8f1d218e479e3f5eafe04e8b8077 (patch) | |
tree | f63b527878e7e1faa3dcb6f5b9274f2fd52eb2a3 /Modules/Platform/Darwin-icc.cmake | |
parent | f1eee26be3252e7486a54f219ef8b5e345120fc5 (diff) | |
download | CMake-8b2fb3310b4b8f1d218e479e3f5eafe04e8b8077.zip CMake-8b2fb3310b4b8f1d218e479e3f5eafe04e8b8077.tar.gz CMake-8b2fb3310b4b8f1d218e479e3f5eafe04e8b8077.tar.bz2 |
Mac: Add guards to CMAKE_FIND_FRAMEWORK and CMAKE_FIND_APPBUNDLE defaults
The default for `CMAKE_FIND_FRAMEWORK`, defined in `Darwin.cmake` and
`Darwin-icc.cmake`, is now guarded so that it will not override command line
arguments passed by users.
Similarly for `CMAKE_FIND_APPBUNDLE`
Diffstat (limited to 'Modules/Platform/Darwin-icc.cmake')
-rw-r--r-- | Modules/Platform/Darwin-icc.cmake | 9 |
1 files changed, 6 insertions, 3 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) - |