From ee38b8f88442ecaea0385de168c0a6a2cb940dc4 Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Fri, 25 Oct 2013 14:10:28 +0000 Subject: [PATCH] Put disabling of serialization in the right place --- wrap/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wrap/CMakeLists.txt b/wrap/CMakeLists.txt index 399600b7e..ed0234bfe 100644 --- a/wrap/CMakeLists.txt +++ b/wrap/CMakeLists.txt @@ -2,6 +2,12 @@ set(WRAP_BOOST_LIBRARIES ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} ${Boost_REGEX_LIBRARY}) +# Allow for disabling serialization to handle errors related to Clang's linker +option(GTSAM_WRAP_SERIALIZATION "If enabled, allows for wrapped objects to be saved via boost.serialization" ON) +if (NOT GTSAM_WRAP_SERIALIZATION) + add_definitions(-DWRAP_DISABLE_SERIALIZE) +endif() + # Build the executable itself file(GLOB wrap_srcs "*.cpp") file(GLOB wrap_headers "*.h")