This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 39
boost-cpp 1.70.0 cmake config files give the static libs, not shared #61
Comments
Can you send a PR to rename the cmake file folder to something like |
Cant we just disable static libs ? |
Is it OK to just move the boost files? The $PREFIX/lib/cmake directory might have other |
Did you mean to close this @microe? |
No, miss hit in my browser. Sorry. |
Hopefully the submitted PR works out. If it doesn't, I'll try just moving the boost cmake config files instead of the whole directory. |
The logic in the 1.70 boost cmake files is defintely busted. I danced around it in my project by doing this |
@timsnyder Thanks! |
we just removed static libs |
Yay! |
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue: When building software with cmake that depends on boost-cpp 1.70.0, the cmake configs in $CONDA_PREFIX/lib/cmake give the static version of the boost libraries instead of the shared libraries.
This will likely break the build for various reasons, for example libboost_filesystem.a has hidden symbols in it. As soon as you try to link with a shared object file, the build will error out because hidden objects/symbols cannot be used in shared object builds.
Setting the cmake variable Boost_USE_STATIC_LIBS to "OFF" causes cmake to error out because it can't find libboost_system.so.
If you instead move the cmake config files away, then FindBoost.cmake can conclude and works properly.
For example:
Now cmake and FindBoost.cmake can do their thing and the build finishes.
The text was updated successfully, but these errors were encountered: