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
Set path to Boost libraries #1872
Conversation
find_package(Boost | ||
1.59.0 EXACT | ||
REQUIRED | ||
COMPONENTS program_options random regex system thread |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sergeuz I put random
in this list because of <particle-iot/device-os>/ci/build_boost.sh
, but based on the list in your first PR, we may not need to check for it.
@zfields The boost path changes work like a charm, thank you! I enabled multithreading support in Boost – not sure why we were building it in single-threaded mode |
@@ -10,7 +10,6 @@ if contains "${BUILD_PLATFORM[*]}" unit-test; then | |||
( source ./ci/install_gcovr.sh | |||
source ./ci/install_boost.sh | |||
./ci/build_boost.sh && | |||
cp -r ${BOOST_ROOT}/boost/ /usr/include/ && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
The requested changes have been addressed by the requester :)
Problem
It is now required to have Boost libraries installed globally in the system to build CMake-based unit tests locally (this change was introduced in #1869). This PR changes the paths to Boost libraries back to
$BOOST_ROOT
which is set by CI scripts.Note: This is a temporary solution. Ideally, we'd want all necessary paths to be detected and set using built-in CMake mechanisms.
Steps to Test
source ci/install_boost.sh
.ci/build_boost.sh
.