Fix warnings when using CMake 3.1.0

fixes #7894
This commit is contained in:
Gunnar Beutner 2014-12-04 22:02:44 +01:00
parent 7d93788650
commit 795b5b87d6
1 changed files with 4 additions and 4 deletions

View File

@ -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")