summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCCompiler.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/CMakeCCompiler.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/CMakeCCompiler.cmake.in')
-rw-r--r--Modules/CMakeCCompiler.cmake.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCCompiler.cmake.in b/Modules/CMakeCCompiler.cmake.in
index 9e355a0..051df4c 100644
--- a/Modules/CMakeCCompiler.cmake.in
+++ b/Modules/CMakeCCompiler.cmake.in
@@ -38,6 +38,7 @@ IF(CMAKE_C_COMPILER_ABI)
ENDIF(CMAKE_C_COMPILER_ABI)
SET(CMAKE_C_HAS_ISYSROOT "@CMAKE_C_HAS_ISYSROOT@")
+@CMAKE_C_OSX_DEPLOYMENT_TARGET_FLAG_CODE@
SET(CMAKE_C_IMPLICIT_LINK_LIBRARIES "@CMAKE_C_IMPLICIT_LINK_LIBRARIES@")
SET(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "@CMAKE_C_IMPLICIT_LINK_DIRECTORIES@")