diff options
author | Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com> | 2016-03-09 05:50:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-09 13:37:29 (GMT) |
commit | 63c4133b38f665bcf77bd92c08cbdc2e7ebee178 (patch) | |
tree | 573569e8e1015137592a416bcfb92e6e3cbcc67d /Modules | |
parent | eb094da60bc7f03b424250f5733db708761fca20 (diff) | |
download | CMake-63c4133b38f665bcf77bd92c08cbdc2e7ebee178.zip CMake-63c4133b38f665bcf77bd92c08cbdc2e7ebee178.tar.gz CMake-63c4133b38f665bcf77bd92c08cbdc2e7ebee178.tar.bz2 |
OS X: Use -iframework with Clang only on version >= 3.2
Since commit v3.1.0-rc1~564^2 (OS X: Use -iframework for system
framework directories, 2014-05-05) we test the version of Clang is smaller
that 3.1 to see if it supports -iframework.
Considering that "iframework" support has been added in clang@r142418
(Frontend: Support -iframework.) prior to clang 3.1, this made sense.
That said, considering that support for multiple -iframework parameters
has been added later in clang@r164607 (-iframework should allow separate
arguments. ) prior to clang 3.2, this commit updates the check to enable
framework support only if version is >= 3.2
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Darwin-Clang.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Darwin-Clang.cmake b/Modules/Platform/Darwin-Clang.cmake index 4cded47..61a5e0c 100644 --- a/Modules/Platform/Darwin-Clang.cmake +++ b/Modules/Platform/Darwin-Clang.cmake @@ -24,7 +24,7 @@ macro(__darwin_compiler_clang lang) set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") set(CMAKE_${lang}_SYSROOT_FLAG "-isysroot") set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") - if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.1) + if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.2) set(CMAKE_${lang}_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") endif() endmacro() |