improved CMake for Boost serialization flag

release/4.3a0
Varun Agrawal 2023-02-13 11:00:14 -05:00
parent 3374524172
commit 0e6cbfd44a
2 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,7 @@ include(cmake/HandleGeneralOptions.cmake) # CMake build options
# Enable or disable serialization with GTSAM_ENABLE_BOOST_SERIALIZATION # Enable or disable serialization with GTSAM_ENABLE_BOOST_SERIALIZATION
option(GTSAM_ENABLE_BOOST_SERIALIZATION "Enable Boost serialization" ON) option(GTSAM_ENABLE_BOOST_SERIALIZATION "Enable Boost serialization" ON)
if(GTSAM_ENABLE_BOOST_SERIALIZATION) if(GTSAM_ENABLE_BOOST_SERIALIZATION)
add_definitions(-DGTSAM_ENABLE_BOOST_SERIALIZATION) add_compile_definitions(GTSAM_ENABLE_BOOST_SERIALIZATION)
endif() endif()
option(GTSAM_USE_BOOST_FEATURES "Enable Features that use Boost" ON) option(GTSAM_USE_BOOST_FEATURES "Enable Features that use Boost" ON)

View File

@ -29,6 +29,8 @@ if(NOT MSVC AND NOT XCODE_VERSION)
print_config("C++ compilation flags" "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}}") print_config("C++ compilation flags" "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPER}}")
endif() endif()
print_config("Enable Boost serialization" "${GTSAM_ENABLE_BOOST_SERIALIZATION}")
print_build_options_for_target(gtsam) print_build_options_for_target(gtsam)
print_config("Use System Eigen" "${GTSAM_USE_SYSTEM_EIGEN} (Using version: ${GTSAM_EIGEN_VERSION})") print_config("Use System Eigen" "${GTSAM_USE_SYSTEM_EIGEN} (Using version: ${GTSAM_EIGEN_VERSION})")