aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2015-07-01 17:06:28 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2015-07-01 17:06:28 +0200
commit3083053dd2b50c5c68587b57c730c0546eff4cd5 (patch)
tree7d046c35e869b3b05bb39ad85db65814787677cb /CMakeLists.txt
parent5fe51d75f028a36db724174c0b02f835d7428d0a (diff)
downloadmbedtls-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.txt4
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)