mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Buildsystem: Fixed disabling compiler warnings in dep for clang/icc
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")
|
||||
|
||||
@@ -39,9 +39,4 @@ set(TOMCRYPT_FILES
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/dep)
|
||||
|
||||
# Turn off warnings for casclib till the sources are updated
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
set_source_files_properties(Common.cpp PROPERTIES COMPILE_FLAGS -Wno-char-subscripts)
|
||||
endif()
|
||||
|
||||
add_library(casc STATIC ${SRC_FILES} ${TOMCRYPT_FILES})
|
||||
|
||||
@@ -20,11 +20,6 @@ add_library(zmqpp STATIC
|
||||
${zmqpp_STAT_SRCS}
|
||||
)
|
||||
|
||||
# Turn off warnings for zmqpp till the sources are updated
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
set_source_files_properties(socket.cpp PROPERTIES COMPILE_FLAGS -Wno-unused-const-variable)
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
add_definitions(-DBUILD_VERSION=\\"3.2.0\\")
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user