diff options
author | David Cole <david.cole@kitware.com> | 2009-01-27 16:50:41 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-01-27 16:50:41 (GMT) |
commit | 2853326e7a8452f16d06776e302a6171c62ae87d (patch) | |
tree | 55ed7352cdcbf48f5196f0a9112c3aeb16001e6f /Modules | |
parent | 3df1535c802a9360cef895421b2a7fa0f84a83ff (diff) | |
download | CMake-2853326e7a8452f16d06776e302a6171c62ae87d.zip CMake-2853326e7a8452f16d06776e302a6171c62ae87d.tar.gz CMake-2853326e7a8452f16d06776e302a6171c62ae87d.tar.bz2 |
BUG: Only set CMAKE_OSX_DEPLOYMENT_TARGET on Mac OSX 10.4 or later. The gcc that runs on 10.3 and earlier does not understand the compiler flag it maps to...
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Darwin.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake index 08c08f2..5d57a39 100644 --- a/Modules/Platform/Darwin.cmake +++ b/Modules/Platform/Darwin.cmake @@ -111,8 +111,10 @@ IF(NOT ENV_SDKROOT STREQUAL "") ENDIF(NOT ENV_SDKROOT STREQUAL "") # Set cache variables - end user may change these during ccmake or cmake-gui configure. -SET(CMAKE_OSX_DEPLOYMENT_TARGET "${CMAKE_OSX_DEPLOYMENT_TARGET_DEFAULT}" CACHE STRING - "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.") +IF(CURRENT_OSX_VERSION GREATER 10.3) + SET(CMAKE_OSX_DEPLOYMENT_TARGET "${CMAKE_OSX_DEPLOYMENT_TARGET_DEFAULT}" CACHE STRING + "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.") +ENDIF(CURRENT_OSX_VERSION GREATER 10.3) SET(CMAKE_OSX_SYSROOT "${CMAKE_OSX_SYSROOT_DEFAULT}" CACHE PATH "The product will be built against the headers and libraries located inside the indicated SDK.") |