-
Notifications
You must be signed in to change notification settings - Fork 596
CMake: require Boost unit_test_framework #10260
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
Conversation
|
All packages still build! 🎉 https://git.icinga.com/packages/icinga2/-/pipelines/34928 |
yhabteab
left a comment
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.
Why not just make this search required instead of silently (QUIET) suppressing it?
icinga2/third-party/cmake/BoostTestTargets.cmake
Lines 57 to 59 in 7888366
| if(NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY) | |
| find_package(Boost 1.34.0 QUIET COMPONENTS unit_test_framework) | |
| endif() |
Al2Klimov
left a comment
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.
AFAIK this is 3rd party stuff we're just shipping.
| endif() | ||
|
|
||
| find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS coroutine context date_time filesystem iostreams thread system program_options regex REQUIRED) | ||
| find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS coroutine context date_time filesystem iostreams thread system program_options regex unit_test_framework REQUIRED) |
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.
I'd like a central list where one can look up once what we require.
Even with `-DICINGA2_WITH_TESTS=ON -DBUILD_TESTING=ON` CLion (and likely not only it) doesn't recognize any test/ files as part of the project, nor allows them to run without the unit_test_framework.
5cb857e to
5490dbe
Compare
|
This is no longer required. See #10528. |
Even with
-DICINGA2_WITH_TESTS=ON -DBUILD_TESTING=ONCLion (and likely not only it) doesn't recognize any test/ files as part of the project, nor allows them to run without the unit_test_framework.@yhabteab Again thank you for your help with fixing missing unit_test_framework on my WS.