Skip to content

Commit ecc514f

Browse files
SmallJokerest31
authored andcommittedMay 12, 2015
Build and link gmp correctly on MSVC
Also optimize json's library
1 parent 75622c3 commit ecc514f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

Diff for: ‎src/gmp/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
add_library(gmp mini-gmp.c)
1+
if(MSVC)
2+
set(CMAKE_C_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG")
3+
endif()
24

5+
add_library(gmp mini-gmp.c)
36
target_link_libraries(gmp)
47

Diff for: ‎src/json/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if(MSVC)
2-
set(CMAKE_CXX_FLAGS_RELEASE "/MT")
2+
set(CMAKE_CXX_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG")
33
endif()
44

55
add_library(jsoncpp jsoncpp.cpp)

0 commit comments

Comments
 (0)