aboutsummaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2015-04-29 19:28:25 +0200
committerest31 <MTest31@outlook.com>2015-05-01 07:34:51 +0200
commit6626a3f72f66703a161abccab90cffcec31c3932 (patch)
tree80838a69a411c1bff1462b7ed07be007236a4e5b /src/json
parent37ca3212eee6d70a54493168014f9254cc6e8f37 (diff)
downloadminetest-6626a3f72f66703a161abccab90cffcec31c3932.tar.gz
minetest-6626a3f72f66703a161abccab90cffcec31c3932.tar.bz2
minetest-6626a3f72f66703a161abccab90cffcec31c3932.zip
Fix several MSVC issues numeric.h
-> Round negative numbers correctly CMakeLists.txt -> Link Json with the static run-time library
Diffstat (limited to 'src/json')
-rw-r--r--src/json/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
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)