Skip to content
Snippets Groups Projects
Unverified Commit 12965658 authored by Louis Montaut's avatar Louis Montaut
Browse files

CMakeLists: simplify adding boost dependencies

parent f1c52403
No related branches found
No related tags found
No related merge requests found
......@@ -115,17 +115,10 @@ endif()
# Required dependencies
SET_BOOST_DEFAULT_OPTIONS()
EXPORT_BOOST_DEFAULT_OPTIONS()
IF(WIN32)
ADD_PROJECT_DEPENDENCY(Boost REQUIRED COMPONENTS chrono thread date_time serialization filesystem)
if (HPP_FCL_ENABLE_LOGGING)
ADD_PROJECT_DEPENDENCY(Boost REQUIRED COMPONENTS log)
endif()
ELSE(WIN32)
ADD_PROJECT_DEPENDENCY(Boost REQUIRED chrono serialization filesystem)
if (HPP_FCL_ENABLE_LOGGING)
ADD_PROJECT_DEPENDENCY(Boost REQUIRED log)
endif()
ENDIF(WIN32)
ADD_PROJECT_DEPENDENCY(Boost REQUIRED chrono thread date_time serialization filesystem)
if (HPP_FCL_ENABLE_LOGGING)
ADD_PROJECT_DEPENDENCY(Boost REQUIRED log)
endif()
if(BUILD_PYTHON_INTERFACE)
find_package(Boost REQUIRED COMPONENTS system)
endif(BUILD_PYTHON_INTERFACE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment