From 6626a3f72f66703a161abccab90cffcec31c3932 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Wed, 29 Apr 2015 19:28:25 +0200 Subject: Fix several MSVC issues numeric.h -> Round negative numbers correctly CMakeLists.txt -> Link Json with the static run-time library --- src/json/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/json/CMakeLists.txt') diff --git a/src/json/CMakeLists.txt b/src/json/CMakeLists.txt index 206c6ea9c..de99c7f0c 100644 --- a/src/json/CMakeLists.txt +++ b/src/json/CMakeLists.txt @@ -1,4 +1,7 @@ -add_library(jsoncpp jsoncpp.cpp) +if(MSVC) + set(CMAKE_CXX_FLAGS_RELEASE "/MT") +endif() +add_library(jsoncpp jsoncpp.cpp) target_link_libraries(jsoncpp) -- cgit v1.2.3