mirror of
https://github.com/RPCS3/cereal.git
synced 2024-11-26 20:50:26 +00:00
Add option to disable performance test build
This commit is contained in:
parent
797239531b
commit
1bce4362db
@ -2,6 +2,7 @@ cmake_minimum_required (VERSION 2.6.2)
|
||||
project (cereal)
|
||||
|
||||
option(SKIP_PORTABILITY_TEST "Skip portability (32 bit) tests" OFF)
|
||||
option(SKIP_PERFORMANCE_COMPARISON "Skip building performance comparison (requires boost)" OFF)
|
||||
if(NOT CMAKE_VERSION VERSION_LESS 3.0) # installing cereal requires INTERFACE lib
|
||||
option(JUST_INSTALL_CEREAL "Don't do anything besides installing the library" OFF)
|
||||
endif()
|
||||
|
@ -8,10 +8,10 @@ add_executable(sandbox_vs sandbox_vs.cpp)
|
||||
target_link_libraries(sandbox_vs sandbox_vs_dll)
|
||||
include_directories(sandbox_shared_lib)
|
||||
|
||||
if(Boost_FOUND)
|
||||
if((Boost_FOUND) AND NOT SKIP_PERFORMANCE_COMPARISON)
|
||||
add_executable(performance performance.cpp)
|
||||
if(MSVC)
|
||||
set_target_properties(performance PROPERTIES COMPILE_DEFINITIONS "BOOST_SERIALIZATION_DYN_LINK")
|
||||
endif()
|
||||
target_link_libraries(performance ${Boost_LIBRARIES})
|
||||
endif(Boost_FOUND)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user