diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2015-07-01 17:06:28 +0200 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2015-07-01 17:06:28 +0200 |
commit | 3083053dd2b50c5c68587b57c730c0546eff4cd5 (patch) | |
tree | 7d046c35e869b3b05bb39ad85db65814787677cb /CMakeLists.txt | |
parent | 5fe51d75f028a36db724174c0b02f835d7428d0a (diff) | |
download | mbedtls-3083053dd2b50c5c68587b57c730c0546eff4cd5.zip mbedtls-3083053dd2b50c5c68587b57c730c0546eff4cd5.tar.gz mbedtls-3083053dd2b50c5c68587b57c730c0546eff4cd5.tar.bz2 |
More cmake for windows tune-ups
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b394c3..87cd2ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,10 @@ if(CMAKE_COMPILER_IS_CLANG) set(CMAKE_C_FLAGS_CHECK "-Werror -Os") endif(CMAKE_COMPILER_IS_CLANG) +if(MSVC) + set(CMAKE_C_FLAGS_CHECK "/WX") +endif(MSVC) + set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Choose the type of build: None Debug Release Coverage ASan ASanDbg MemSan MemSanDbg Check CheckFull" FORCE) |