mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Build and link gmp correctly on MSVC
Also optimize json's library
This commit is contained in:
parent
75622c30be
commit
ecc514f11b
@ -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)
|
target_link_libraries(gmp)
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "/MT")
|
set(CMAKE_CXX_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(jsoncpp jsoncpp.cpp)
|
add_library(jsoncpp jsoncpp.cpp)
|
||||||
|
Loading…
Reference in New Issue
Block a user