File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ else()
14
14
set (CEREAL_THREAD_LIBS "" )
15
15
endif ()
16
16
17
- if (NOT MSVC )
18
- set (CMAKE_CXX_FLAGS "-Wall -g -Wextra -Wshadow -pedantic -Wold-style-cast ${CMAKE_CXX_FLAGS} " )
17
+ if (MSVC )
18
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj" )
19
+ else ()
20
+ set (CMAKE_CXX_FLAGS "-Wall -g -Wextra -Wshadow -pedantic -Wold-style-cast ${CMAKE_CXX_FLAGS} " )
19
21
option (WITH_WERROR "Compile with '-Werror' C++ compiler flag" ON )
20
22
if (WITH_WERROR)
21
23
set (CMAKE_CXX_FLAGS "-Werror ${CMAKE_CXX_FLAGS} " )
Original file line number Diff line number Diff line change @@ -10,5 +10,8 @@ include_directories(sandbox_shared_lib)
10
10
11
11
if (Boost_FOUND)
12
12
add_executable (performance performance.cpp)
13
+ if (MSVC )
14
+ set_target_properties (performance PROPERTIES COMPILE_DEFINITIONS "BOOST_SERIALIZATION_DYN_LINK" )
15
+ endif ()
13
16
target_link_libraries (performance ${Boost_LIBRARIES} )
14
17
endif (Boost_FOUND)
You can’t perform that action at this time.
0 commit comments