aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Ullrich <christian.ullrich@traditionsa.lu>2014-10-13 13:06:02 +0200
committerChristian Ullrich <christian.ullrich@traditionsa.lu>2014-10-13 13:06:02 +0200
commitb52e7a69aac457e258782bce0d0a3894d9acb686 (patch)
tree64bbc5d56bce1c67697d8220524245542db1f2c2 /CMakeLists.txt
parent1395e4303a056f7b53d6b6ed5d47350bf8e7dea4 (diff)
downloadjansson-b52e7a69aac457e258782bce0d0a3894d9acb686.zip
jansson-b52e7a69aac457e258782bce0d0a3894d9acb686.tar.gz
jansson-b52e7a69aac457e258782bce0d0a3894d9acb686.tar.bz2
Fix CFLAGS for static-CRT build.
Setting the variables to only "/MT(d)" resets all other flags to their defaults, so the debug build used release flags.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ed3a4c..fdc6b36 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -98,8 +98,8 @@ if (MSVC)
add_definitions( "/W3 /D_CRT_SECURE_NO_WARNINGS /wd4005 /wd4996 /nologo" )
if (JANSSON_STATIC_CRT)
- set(CMAKE_C_FLAGS_RELEASE "/MT")
- set(CMAKE_C_FLAGS_DEBUG "/MTd")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")
+ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
endif()
endif()