aboutsummaryrefslogtreecommitdiff
path: root/src/gmp
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2015-05-12 20:38:56 +0200
committerest31 <MTest31@outlook.com>2015-05-12 21:07:46 +0200
commitecc514f11b77690bc1d2d782c8f00a9b045b4f4f (patch)
tree9caabc942a43c80bbcd621d0300415c1a42df7bd /src/gmp
parent75622c30beb390b7ed578010a00390aa971b3951 (diff)
downloadminetest-ecc514f11b77690bc1d2d782c8f00a9b045b4f4f.tar.gz
minetest-ecc514f11b77690bc1d2d782c8f00a9b045b4f4f.tar.bz2
minetest-ecc514f11b77690bc1d2d782c8f00a9b045b4f4f.zip
Build and link gmp correctly on MSVC
Also optimize json's library
Diffstat (limited to 'src/gmp')
-rw-r--r--src/gmp/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gmp/CMakeLists.txt b/src/gmp/CMakeLists.txt
index b8a56543f..96ae8191d 100644
--- a/src/gmp/CMakeLists.txt
+++ b/src/gmp/CMakeLists.txt
@@ -1,4 +1,7 @@
-add_library(gmp mini-gmp.c)
+if(MSVC)
+ set(CMAKE_C_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG")
+endif()
+add_library(gmp mini-gmp.c)
target_link_libraries(gmp)