Fix swig missing includes (example FastSpinningObjects was failing). Update ('modern' cmake) find process. Fix CI
@@ -55,15 +55,13 @@ library_project_setup()
# boost
# check https://cmake.org/cmake/help/latest/module/FindBoost.html?highlight=boost
-find_package(Boost 1.61 REQUIRED
- COMPONENTS
- OPTIONAL_COMPONENTS log)
-
+find_package(Boost 1.61 REQUIRED)
# Boost must be set as a public dependency because of SiconosAlgebraTypeDefs.hpp
# This has to be reviewed !!!
target_link_libraries(kernel PUBLIC Boost::boost)
if(WITH_BOOST_LOG)
+ find_package(Boost 1.61 REQUIRED COMPONENTS log)
target_compile_definition(kernel PRIVATE BOOST_LOG_DYN_LINK)
endif()
