From 9e81ef2b1a9f5b2e8049a704b5dcc7922e3eb339 Mon Sep 17 00:00:00 2001 From: "R.J.V. Bertin" Date: Thu, 15 Jun 2017 19:11:16 +0200 Subject: (always include CheckCXXCompilerFlag before calling it) Mea culpa, the project I tested this with apparently used the macro too. --- kde-modules/KDECompilerSettings.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'kde-modules/KDECompilerSettings.cmake') 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) -- cgit v1.2.1