diff options
author | David Cole <david.cole@kitware.com> | 2010-01-29 16:56:35 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2010-01-29 16:56:35 (GMT) |
commit | 6ee87b2e5cd31b256c9f1d2f43bd24e665469732 (patch) | |
tree | 1383f9961df27fc160e1f0634f6faf96a90dbfc8 /Modules/Platform/Darwin-GNU-C.cmake | |
parent | 42c3eb85d62012bad8df85047df70b8fd9bbbeab (diff) | |
download | CMake-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/Platform/Darwin-GNU-C.cmake')
-rw-r--r-- | Modules/Platform/Darwin-GNU-C.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin-GNU-C.cmake b/Modules/Platform/Darwin-GNU-C.cmake index 155d594..4e326c4 100644 --- a/Modules/Platform/Darwin-GNU-C.cmake +++ b/Modules/Platform/Darwin-GNU-C.cmake @@ -1,3 +1,4 @@ include(Platform/Darwin-GNU) __darwin_compiler_gnu(C) cmake_gnu_has_isysroot(C) +cmake_gnu_set_osx_deployment_target_flag(C) |