open-simulation-platform / libcosim

OSP C++ co-simulation library
https://open-simulation-platform.github.io/libcosim
Mozilla Public License 2.0
55 stars 10 forks source link

Consider setting Boost_USE_STATIC_LIBS in libcosim-config.cmake for static build #675

Closed hplatou closed 6 months ago

hplatou commented 2 years ago

When using libcosim as conan dependency with option libcosim:shared=False, CMake will fail unless Boost_USE_STATIC_LIBS is set. Please consider setting Boost_USE_STATIC_LIBS in generated libcosim-config.cmake for static build.

kyllingstad commented 6 months ago

I believe this is fixed after the upgrade to Conan 2 (#747), because the machinery to find Boost and other dependencies is now generated by Conan's CMakeDeps generator. Please reopen if this is not the case.