Open OEP opened 3 years ago
@OEP We can wrap this compiler definition around a flag that can be controlled via CMake option. Something like this:
option(BUILD_WITH_STATIC_BOOST "Build with static boost." OFF)
Would that help?
@HamedSabri-adsk That'd probably do the trick, but it may be worth using Boost::dynamic_linking
import target from FindBoost.cmake since that seems to be what would set that for you (still learning CMake over here...)
Either way, having an option works for me.
Describe the issue
Using a static build of Boost results in a linker error like the one seen below in the build log. The root cause is the build system setting BOOST_ALL_DYN_LINK which forces Boost to use the dynamic symbol names.
Build log
Specs:
Additional context
To work around, you can just delete the define.