mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 05:11:55 +01:00
Buildsystem: Fixed disabling compiler warnings in dep for clang/icc
(cherry picked from commitc24787f666) (reverts77f7f56268) Conflicts: dep/CascLib/CMakeLists.txt dep/zmqpp/CMakeLists.txt
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user