Add RDK_USE_BOOST_SERIALIZATION configure option (On by default)

This commit is contained in:
Brian Kelley
2015-12-03 13:52:41 -05:00
parent 3efdb4015a
commit 8bde707bef
4 changed files with 29 additions and 20 deletions

View File

@@ -1,13 +1,14 @@
find_package(SWIG REQUIRED)
include(${SWIG_USE_FILE})
set(T_LIBS ${Boost_LIBRARIES})
find_package(Boost 1.39.0 COMPONENTS serialization)
if (Boost_SERIALIZATION_LIBRARY)
# don't add the boost serialization definitions, swig can't compile the
# headers. Hopefully it will stil link and run...
set(Boost_LIBRARIES ${T_LIBS} ${Boost_LIBRARIES})
else()
if(RDK_USE_BOOST_SERIALIZATION)
set(T_LIBS ${Boost_LIBRARIES})
find_package(Boost 1.39.0 COMPONENTS serialization)
if (Boost_SERIALIZATION_LIBRARY)
# don't add the boost serialization definitions, swig can't compile the
# headers. Hopefully it will stil link and run...
set(Boost_LIBRARIES ${T_LIBS} ${Boost_LIBRARIES})
endif()
endif()
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})