From 77f7f562683753a15bd2d3f80e65385f88383566 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Wed, 1 Jul 2015 21:49:42 +0200 Subject: [PATCH] Dep/gsoap: Turn off build warnings Disable -Wunused-parameter warnings in gsoap library to have a 0-warning build till the library gets updated --- dep/gsoap/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dep/gsoap/CMakeLists.txt b/dep/gsoap/CMakeLists.txt index e339ccb00e..2cf78e1058 100644 --- a/dep/gsoap/CMakeLists.txt +++ b/dep/gsoap/CMakeLists.txt @@ -21,6 +21,11 @@ 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)