Disable warning for Cryptopp

Add CXX_FLAGS /W0 or -w, to suppress compiler warning in cryptopp component
This commit is contained in:
Thonnat 2017-06-07 12:14:14 +02:00
parent 160df440bc
commit 06e99970da

View File

@ -44,6 +44,13 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
add_definitions(-wd68 -wd186 -wd279 -wd327 -wd161 -wd3180) add_definitions(-wd68 -wd186 -wd279 -wd327 -wd161 -wd3180)
endif() 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 # Endianness
TEST_BIG_ENDIAN(IS_BIG_ENDIAN) TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
if(IS_BIG_ENDIAN) if(IS_BIG_ENDIAN)