mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 13:25:28 +00:00
More cmake for windows tune-ups
This commit is contained in:
parent
5fe51d75f0
commit
3083053dd2
|
@ -26,6 +26,10 @@ if(CMAKE_COMPILER_IS_CLANG)
|
||||||
set(CMAKE_C_FLAGS_CHECK "-Werror -Os")
|
set(CMAKE_C_FLAGS_CHECK "-Werror -Os")
|
||||||
endif(CMAKE_COMPILER_IS_CLANG)
|
endif(CMAKE_COMPILER_IS_CLANG)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set(CMAKE_C_FLAGS_CHECK "/WX")
|
||||||
|
endif(MSVC)
|
||||||
|
|
||||||
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}
|
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}
|
||||||
CACHE STRING "Choose the type of build: None Debug Release Coverage ASan ASanDbg MemSan MemSanDbg Check CheckFull"
|
CACHE STRING "Choose the type of build: None Debug Release Coverage ASan ASanDbg MemSan MemSanDbg Check CheckFull"
|
||||||
FORCE)
|
FORCE)
|
||||||
|
|
|
@ -33,6 +33,10 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
|
||||||
endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
|
endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /w") # no warnings here
|
||||||
|
endif(MSVC)
|
||||||
|
|
||||||
add_test_suite(aes aes.ecb)
|
add_test_suite(aes aes.ecb)
|
||||||
add_test_suite(aes aes.cbc)
|
add_test_suite(aes aes.cbc)
|
||||||
add_test_suite(aes aes.cfb)
|
add_test_suite(aes aes.cfb)
|
||||||
|
|
Loading…
Reference in a new issue