From d1e414d813fcdb2dd564c057414d90684006cb61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kl=C3=B6en=20Lansfiel?= Date: Sun, 25 Jun 2017 02:38:52 +0200 Subject: externals: silence warning C4390 on MSVC for cryptopp (#2805) --- externals/cryptopp/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'externals') diff --git a/externals/cryptopp/CMakeLists.txt b/externals/cryptopp/CMakeLists.txt index 864de18bb..8a626e44a 100644 --- a/externals/cryptopp/CMakeLists.txt +++ b/externals/cryptopp/CMakeLists.txt @@ -44,6 +44,11 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Intel") add_definitions(-wd68 -wd186 -wd279 -wd327 -wd161 -wd3180) endif() +if(MSVC) + # Disable C4390: empty controlled statement found: is this the intent? + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4390") +endif() + # Endianness TEST_BIG_ENDIAN(IS_BIG_ENDIAN) if(IS_BIG_ENDIAN) -- cgit v1.2.3