Verified Commit 1c8792cc authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: move Boost search to dedicated place

parent 31988c62
Pipeline #10858 failed with stage
in 89 minutes and 13 seconds
......@@ -124,11 +124,9 @@ IF(BUILD_WITH_CASADI_SUPPORT)
ENDIF(BUILD_WITH_CASADI_SUPPORT)
SET(BOOST_REQUIRED_COMPONENTS filesystem serialization system)
SET(BOOST_BUILD_COMPONENTS unit_test_framework)
EXPORT_BOOST_DEFAULT_OPTIONS()
ADD_PROJECT_DEPENDENCY(Boost REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
FIND_PACKAGE(Boost COMPONENTS ${BOOST_BUILD_COMPONENTS})
IF(BUILD_PYTHON_INTERFACE)
FINDPYTHON()
......
......@@ -37,9 +37,8 @@ MACRO(ADD_OPTIONAL_COMPILE_DEPENDENCY PKG_CONFIG_STRING)
ADD_DEPENDENCY(0 1 ${PKG_CONFIG_STRING} "${PKG_CONFIG_DEBUG_STRING}")
ENDMACRO()
# --- RULES -------------------------------------------------------------------
# --- RULES -------------------------------------------------------------------
# --- RULES -------------------------------------------------------------------
# Find Boost.UnitTestFramework
FIND_PACKAGE(Boost COMPONENTS unit_test_framework)
# Math components
ADD_PINOCCHIO_UNIT_TEST(eigen-basic-op)
......
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