aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR.J.V. Bertin <rjvbertin@gmail.com>2017-06-15 19:11:16 +0200
committerR.J.V. Bertin <rjvbertin@gmail.com>2017-06-15 19:11:16 +0200
commit9e81ef2b1a9f5b2e8049a704b5dcc7922e3eb339 (patch)
tree8b4f46e9a75e866b8958d36d31508b7f3f58f345
parente45d850414878f77b0abd30935baeda256e8b8e5 (diff)
downloadextra-cmake-modules-9e81ef2b1a9f5b2e8049a704b5dcc7922e3eb339.tar.gz
extra-cmake-modules-9e81ef2b1a9f5b2e8049a704b5dcc7922e3eb339.tar.bz2
(always include CheckCXXCompilerFlag before calling it)
Mea culpa, the project I tested this with apparently used the macro too.
-rw-r--r--kde-modules/KDECompilerSettings.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index 7d523a21..832907e4 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -376,6 +376,7 @@ 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))
+ include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-Wdate-time HAVE_DATE_TIME)
if (HAVE_DATE_TIME)
# -Wdate-time: warn if we use __DATE__ or __TIME__ (we want to be able to reproduce the exact same binary)