Merge pull request #206 from chrullrich/fix-win-build

Fix CMake configuration for Windows build
This commit is contained in:
Petri Lehtinen 2014-10-14 12:28:19 +03:00
commit 19cc800ad3

View File

@ -97,9 +97,9 @@ 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 "${CMAKE_C_FLAGS_RELEASE} /MT")
set(CMAKE_C_FLAGS_DEBUG "/MTd") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
endif() endif()
endif() endif()