Verified Commit e5783b17 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: fix search of Boost components

parent e339011a
......@@ -76,12 +76,14 @@ if(BUILD_PYTHON_INTERFACE)
endif()
# Required dependencies
SET_BOOST_DEFAULT_OPTIONS()
EXPORT_BOOST_DEFAULT_OPTIONS()
ADD_PROJECT_DEPENDENCY(Boost REQUIRED)
find_package(Boost REQUIRED COMPONENTS filesystem unit_test_framework chrono timer)
if (BUILD_PYTHON_INTERFACE)
FINDPYTHON()
set(BOOST_COMPONENTS system python)
search_for_boost()
search_for_boost_python(REQUIRED)
ADD_PROJECT_DEPENDENCY(Boost REQUIRED COMPONENTS system)
endif ()
# Optional dependencies
......
# Find Boost.UnitTestFramework
FIND_PACKAGE(Boost REQUIRED COMPONENTS unit_test_framework filesystem chrono timer)
config_files(fcl_resources/config.h)
macro(add_fcl_test test_name source)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment