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

This commit is contained in:
Shauren
2015-07-03 11:19:27 +02:00
parent 58adb74717
commit c24787f666
3 changed files with 3 additions and 13 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

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

View File

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