Fix static CRT selection.

This commit is contained in:
Christian Ullrich 2014-10-13 13:04:04 +02:00
parent d7a6269a17
commit 1395e4303a

View File

@ -97,7 +97,7 @@ if (MSVC)
# Turn off Microsofts "security" warnings. # Turn off Microsofts "security" warnings.
add_definitions( "/W3 /D_CRT_SECURE_NO_WARNINGS /wd4005 /wd4996 /nologo" ) add_definitions( "/W3 /D_CRT_SECURE_NO_WARNINGS /wd4005 /wd4996 /nologo" )
if (STATIC_CRT) if (JANSSON_STATIC_CRT)
set(CMAKE_C_FLAGS_RELEASE "/MT") set(CMAKE_C_FLAGS_RELEASE "/MT")
set(CMAKE_C_FLAGS_DEBUG "/MTd") set(CMAKE_C_FLAGS_DEBUG "/MTd")
endif() endif()