You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you link to the Boost System library then a link is created by the executable but it does not appear as a dependency in the json manifest which can lead to runtime failures for downstream tools using the manifest to build a deployable package.
boost_system is linked by the executable but does not appear in the json manifest. If the manifest is used to create a deployable package, the executable will fail with a linking error at runtime.
The text was updated successfully, but these errors were encountered:
planetmarshall
changed the title
Boost: Boost.System is linked but does not appear as package dependency
[boost] Boost.System is linked but does not appear as package dependency
Sep 27, 2021
When you run cmake .. in your terminal, you are not adding the cmake module path and prefix path.
You need to add the arguments which conan's CMake build helper automatically adds for you:
You were running cmake's FindBoost.cmake, not the one generated by conan.
I think conan 2.0 will have the same "problem" with running from terminal, but then wou will need to do cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake (or something similar).
When you run cmake .. in your terminal, you are not adding the cmake module path and prefix path.
You need to add the arguments which conan's CMake build helper automatically adds for you:
Yes, I was getting some linking errors related to boost system and I thought that this was the cause. Turned out to be a red herring as you describe - the actual cause is that some of the boost libraries are built with dependencies on the boost::system stub library. I'll close this bug and log another.
This appears to have been introduced by #7290
If you link to the Boost System library then a link is created by the executable but it does not appear as a dependency in the json manifest which can lead to runtime failures for downstream tools using the manifest to build a deployable package.
Steps to Reproduce
Build the attached example:
Observe that
libboost_system.so
appears in the list of linked libraries, it can also be checked in the output ofldd
However, it does not appear in the dependency list in the json manifest
Expected Behaviour:
Libraries linked by the executable should appear in the dependencies of the json manifest so that downstream tools can use the manifest to create a package (eg https://docs.conan.io/en/latest/integrations/custom.html)
Actual Behaviour
boost_system
is linked by the executable but does not appear in the json manifest. If the manifest is used to create a deployable package, the executable will fail with a linking error at runtime.The text was updated successfully, but these errors were encountered: