Buildsystem: Fixed disabling compiler warnings in dep for clang/icc

(cherry picked from commit c24787f666)

(reverts 77f7f56268)

Conflicts:
	dep/CascLib/CMakeLists.txt
	dep/zmqpp/CMakeLists.txt
This commit is contained in:
DDuarte
2015-07-04 01:56:10 +01:00
parent dfc71765f8
commit 5e9a21291c
2 changed files with 3 additions and 8 deletions

View File

@@ -8,10 +8,10 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
if( CMAKE_COMPILER_IS_GNUCXX )
add_definitions(--no-warnings)
elseif( MSVC )
if( MSVC )
add_definitions(/W0)
else()
add_definitions(-w)
endif()
if(CMAKE_SYSTEM_NAME MATCHES "Linux")

View File

@@ -21,11 +21,6 @@ include_directories(
# Little fix for MSVC / Windows platforms
add_definitions(-D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=0)
# Turn off warnings for gsoap till the sources are updated
IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
set_source_files_properties(stdsoap2.cpp PROPERTIES COMPILE_FLAGS -Wno-unused-parameter)
endif()
add_library(gsoap STATIC ${gsoap_STAT_SRCS})
set_target_properties(gsoap PROPERTIES LINKER_LANGUAGE CXX)