From 795b5b87d62be37ab54ef2d69bac4240fc67a933 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 4 Dec 2014 22:02:44 +0100 Subject: [PATCH] Fix warnings when using CMake 3.1.0 fixes #7894 --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8186e095..d06e5838f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,19 +103,19 @@ if(APPLE) set(CMAKE_MACOSX_RPATH 0) endif(APPLE) -if("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") +if(CMAKE_C_COMPILER_ID STREQUAL "Clang") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments -g") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -g") endif() -if("${CMAKE_C_COMPILER_ID}" STREQUAL "SunPro") +if(CMAKE_C_COMPILER_ID STREQUAL "SunPro") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mt -library=stlport4") endif() -if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") +if(CMAKE_C_COMPILER_ID STREQUAL "GNU") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g") - if(${CMAKE_SYSTEM_NAME} MATCHES AIX) + if(CMAKE_SYSTEM_NAME MATCHES AIX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -lpthread") else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")