-
Notifications
You must be signed in to change notification settings - Fork 581
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
CMake: require Boost unit_test_framework #10260
base: master
Are you sure you want to change the base?
Conversation
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.
All packages still build! 🎉 https://git.icinga.com/packages/icinga2/-/pipelines/34928 |
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() |
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.
@@ -173,7 +173,7 @@ else() | |||
set(LOGROTATE_CREATE "\n\tcreate 644 ${ICINGA2_USER} ${ICINGA2_GROUP}") | |||
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.@yhabteab Again thank you for your help with fixing missing unit_test_framework on my WS.