Skip to content

Commit

Permalink
Build and link gmp correctly on MSVC
Browse files Browse the repository at this point in the history
Also optimize json's library
  • Loading branch information
SmallJoker authored and est31 committed May 12, 2015
1 parent 75622c3 commit ecc514f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion 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)

2 changes: 1 addition & 1 deletion src/json/CMakeLists.txt
@@ -1,5 +1,5 @@
if(MSVC)
set(CMAKE_CXX_FLAGS_RELEASE "/MT")
set(CMAKE_CXX_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG")
endif()

add_library(jsoncpp jsoncpp.cpp)
Expand Down

0 comments on commit ecc514f

Please sign in to comment.