aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDEFrameworkCompilerSettings.cmake
diff options
context:
space:
mode:
authorKevin Funk <kfunk@kde.org>2015-12-17 20:37:47 +0100
committerKevin Funk <kfunk@kde.org>2015-12-18 15:13:10 +0100
commitbdd38b5f45a889043deb0665bdb66086ca6c9bf5 (patch)
treec9a60851f03c20ef132b76379cb4487326e1cda9 /kde-modules/KDEFrameworkCompilerSettings.cmake
parent9911382614c46be19fd6ed3b163ebcf468bd5337 (diff)
downloadextra-cmake-modules-bdd38b5f45a889043deb0665bdb66086ca6c9bf5.tar.gz
extra-cmake-modules-bdd38b5f45a889043deb0665bdb66086ca6c9bf5.tar.bz2
Fix CMP0054 warnings
Example: CMake Warning (dev) at Z:/kderoot/share/ECM/kde-modules/KDEFrameworkCompilerSettings.cmake:50(elseif): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. REVIEW: 126405
Diffstat (limited to 'kde-modules/KDEFrameworkCompilerSettings.cmake')
-rw-r--r--kde-modules/KDEFrameworkCompilerSettings.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/kde-modules/KDEFrameworkCompilerSettings.cmake b/kde-modules/KDEFrameworkCompilerSettings.cmake
index e88c10d9..55ab36cf 100644
--- a/kde-modules/KDEFrameworkCompilerSettings.cmake
+++ b/kde-modules/KDEFrameworkCompilerSettings.cmake
@@ -45,9 +45,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DQT_STRICT_ITERATORS)
endif()
-if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic")
-elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# -Wgnu-zero-variadic-macro-arguments is triggered by every qCDebug() call and therefore results
# in a lot of noise. This warning is only notifying us that clang is emulating the GCC behaviour
# instead of the exact standard wording so we can safely ignore it