diff --git a/gtsam/CMakeLists.txt b/gtsam/CMakeLists.txt index 46a45875f..bfc846af3 100644 --- a/gtsam/CMakeLists.txt +++ b/gtsam/CMakeLists.txt @@ -48,10 +48,19 @@ else() set(excluded_sources ${excluded_sources} "${CMAKE_CURRENT_SOURCE_DIR}/geometry/Rot3Q.cpp") endif() +# if GTSAM_ENABLE_BOOST_SERIALIZATION is not set, then we need to exclude the following: +if(NOT GTSAM_ENABLE_BOOST_SERIALIZATION) + list (APPEND excluded_sources ${excluded_sources} + "${CMAKE_CURRENT_SOURCE_DIR}/gtsam/base/serializationTestHelpers.h" + ) +endif() + # if GTSAM_USE_BOOST_FEATURES is not set, then we need to exclude the following: if(NOT GTSAM_USE_BOOST_FEATURES) list (APPEND excluded_sources ${excluded_sources} "${CMAKE_CURRENT_SOURCE_DIR}/nonlinear/GncOptimizer.h" + "${CMAKE_CURRENT_SOURCE_DIR}/inference/graph.h" + "${CMAKE_CURRENT_SOURCE_DIR}/inference/graph-inl.h" ) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index bf922057b..53183bc49 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,6 +9,7 @@ endif() if (NOT GTSAM_USE_BOOST_FEATURES) list(APPEND tests_exclude "testGncOptimizer.cpp") + list(APPEND tests_exclude "testGraph.cpp") endif() if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)