-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build errors when using the USE_SYSTEM_BOOST cmake option. #82
Comments
I don't reproduce that.
I miss something ? |
Maybe it depends on CMake's version? I am using 3.17.3 here. In recent FindBoost versions, targets are defined as Boost::library_name and the old ${Boost_XXX_LIBRARY} vars seems not be defined. |
cmake version 3.20.5 Note that according to https://cmake.org/cmake/help/latest/module/FindBoost.html I tested with Boost::xxx targets. it works for me. |
Thanks for the PR! |
Verified that #83 fixes this issue and merged it in. |
In CMakeLists.txt, target_link_boost function the correct target names for Boost libraries found by FindBoost()
are Boost::system, Boost::filesystem and Boost::thread.
The current values used ${Boost_XXX_LIBRARY} are not defined and as a result boost includes and libraries are not added to the compiler command line.
The text was updated successfully, but these errors were encountered: