summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCXXCompiler.cmake.in
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-01-29 16:56:35 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-01-29 16:56:35 (GMT)
commit6ee87b2e5cd31b256c9f1d2f43bd24e665469732 (patch)
tree1383f9961df27fc160e1f0634f6faf96a90dbfc8 /Modules/CMakeCXXCompiler.cmake.in
parent42c3eb85d62012bad8df85047df70b8fd9bbbeab (diff)
downloadCMake-6ee87b2e5cd31b256c9f1d2f43bd24e665469732.zip
CMake-6ee87b2e5cd31b256c9f1d2f43bd24e665469732.tar.gz
CMake-6ee87b2e5cd31b256c9f1d2f43bd24e665469732.tar.bz2
Fix issue #10155 - default value of CMAKE_OSX_DEPLOYMENT_TARGET should always be the empty string. When the value of CMAKE_OSX_DEPLOYMENT_TARGET is the empty string, the -mmacosx-version-min flag should not show up on the compiler command line. The logic for selecting default value of CMAKE_OSX_SYSROOT is orthogonal to and independent of the value of the deployment target. The default value for CMAKE_OSX_SYSROOT is the SDK that corresponds to the current version of Mac OSX on which cmake is running.
Diffstat (limited to 'Modules/CMakeCXXCompiler.cmake.in')
-rw-r--r--Modules/CMakeCXXCompiler.cmake.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCXXCompiler.cmake.in b/Modules/CMakeCXXCompiler.cmake.in
index 5e71d1f..b264da1 100644
--- a/Modules/CMakeCXXCompiler.cmake.in
+++ b/Modules/CMakeCXXCompiler.cmake.in
@@ -39,6 +39,7 @@ IF(CMAKE_CXX_COMPILER_ABI)
ENDIF(CMAKE_CXX_COMPILER_ABI)
SET(CMAKE_CXX_HAS_ISYSROOT "@CMAKE_CXX_HAS_ISYSROOT@")
+@CMAKE_CXX_OSX_DEPLOYMENT_TARGET_FLAG_CODE@
SET(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "@CMAKE_CXX_IMPLICIT_LINK_LIBRARIES@")
SET(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "@CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES@")