From 06e99970da42d354bd47766824dd387db77e68d1 Mon Sep 17 00:00:00 2001 From: Thonnat Date: Wed, 7 Jun 2017 12:14:14 +0200 Subject: [PATCH] Disable warning for Cryptopp Add CXX_FLAGS /W0 or -w, to suppress compiler warning in cryptopp component --- externals/cryptopp/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/externals/cryptopp/CMakeLists.txt b/externals/cryptopp/CMakeLists.txt index 864de18bb..5f5c5eb98 100644 --- a/externals/cryptopp/CMakeLists.txt +++ b/externals/cryptopp/CMakeLists.txt @@ -44,6 +44,13 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Intel") add_definitions(-wd68 -wd186 -wd279 -wd327 -wd161 -wd3180) endif() +#disable warning for external libraries +if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0" ) +else() + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w" ) +endif() + # Endianness TEST_BIG_ENDIAN(IS_BIG_ENDIAN) if(IS_BIG_ENDIAN)