mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 18:14:14 +01:00
Fix config of compiler warning flags with MSVC
Compiler warnings were being configured twice and not suppressed on the test suites with Microsoft Visual Studio.
This commit is contained in:
parent
635f215145
commit
e2e2db4348
@ -54,7 +54,9 @@ if(CMAKE_COMPILER_IS_CLANG)
|
|||||||
endif(CMAKE_COMPILER_IS_CLANG)
|
endif(CMAKE_COMPILER_IS_CLANG)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(CMAKE_C_FLAGS_CHECK "/WX")
|
# Strictest warnings, and treat as errors
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3")
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Coverage")
|
if(CMAKE_BUILD_TYPE STREQUAL "Coverage")
|
||||||
|
@ -39,7 +39,9 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
|
|||||||
endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
|
endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /w") # no warnings here
|
# If a warning level has been defined, suppress all warnings for test code
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W0")
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX-")
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
add_test_suite(aes aes.ecb)
|
add_test_suite(aes aes.ecb)
|
||||||
|
Loading…
Reference in New Issue
Block a user