diff options
-rw-r--r-- | dep/CMakeLists.txt | 6 | ||||
-rw-r--r-- | dep/CascLib/CMakeLists.txt | 5 | ||||
-rw-r--r-- | dep/zmqpp/CMakeLists.txt | 5 |
3 files changed, 3 insertions, 13 deletions
diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt index e5fc80154bc..66f7bbb3984 100644 --- a/dep/CMakeLists.txt +++ b/dep/CMakeLists.txt @@ -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") diff --git a/dep/CascLib/CMakeLists.txt b/dep/CascLib/CMakeLists.txt index 7217e8642f4..429ebfb78e8 100644 --- a/dep/CascLib/CMakeLists.txt +++ b/dep/CascLib/CMakeLists.txt @@ -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}) diff --git a/dep/zmqpp/CMakeLists.txt b/dep/zmqpp/CMakeLists.txt index 1792bc0a4f3..4166d4fd8b3 100644 --- a/dep/zmqpp/CMakeLists.txt +++ b/dep/zmqpp/CMakeLists.txt @@ -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() |