mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 08:16:33 +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
3c6b18df3a
commit
24d9a4cf8d
2 changed files with 6 additions and 2 deletions
|
|
@ -92,7 +92,9 @@ if(CMAKE_COMPILER_IS_CLANG)
|
|||
endif(CMAKE_COMPILER_IS_CLANG)
|
||||
|
||||
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)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Coverage")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue