diff options
author | R.J.V. Bertin <rjvbertin@gmail.com> | 2017-05-30 01:05:18 +0200 |
---|---|---|
committer | R.J.V. Bertin <rjvbertin@gmail.com> | 2017-05-30 01:05:18 +0200 |
commit | 340b969f54d2f271e925ed7f84c831e1e4b2ccd0 (patch) | |
tree | 0660ab7fcf1445ab5f783fc4ca6a191987f87f5d | |
parent | a959e34971f917a6141b826a5c08e3a96be78336 (diff) | |
download | extra-cmake-modules-5.35.0.tar.gz extra-cmake-modules-5.35.0.tar.bz2 |
restore hidden-visibility testing with Xcode 6.2v5.35.0-rc1v5.35.0
Xcode 6.2 (OS X 10.9.5) has a Clang version that is based on Clang 3.5 but does
not yet support -Wdate-time . Commit 7af9f8e2b6eb235923a329e8ff24012883fb6b86
introduced a regression where this compiler failed to pass the visibility tests
because it prints a warning about -Wdate-time. This in turn leads to linker
errors.
-rw-r--r-- | kde-modules/KDECompilerSettings.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake index 8f87ecc1..2de98c04 100644 --- a/kde-modules/KDECompilerSettings.cmake +++ b/kde-modules/KDECompilerSettings.cmake @@ -376,8 +376,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR endif() if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0) OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5)) - # -Wdate-time: warn if we use __DATE__ or __TIME__ (we want to be able to reproduce the exact same binary) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdate-time") + if (NOT (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.1.0.6000000)) + # -Wdate-time: warn if we use __DATE__ or __TIME__ (we want to be able to reproduce the exact same binary) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdate-time") + endif() endif() # -w1 turns on warnings and errors |