-
Notifications
You must be signed in to change notification settings - Fork 29
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
Boost CMake testing procedure doesn't work for StaticString #53
Comments
alandefreitas
added a commit
to alandefreitas/static_string
that referenced
this issue
Dec 22, 2023
Is this going to be fixed? It breaks the tests of Mysql. |
@pdimov Looking into it |
Probably this one fixes it: #54 |
alandefreitas
added a commit
that referenced
this issue
Feb 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documented testing procedure
fails for Boost.StaticString, because the test executables aren't built by the target
tests
. BoostTest handles this automatically, but for tests declared manually, one needs to first declare thetests
target if not presentand then for each test executable, use
add_dependencies(test my_test_executable)
.Or, since there is already a target
boost_static_string_all_tests
, it should be enough to make it a dependency oftests
:add_dependencies(tests boost_static_string_all_tests)
.(For this to keep working after the eventual fix, it might be a good idea to add it to CI.)
It's also good practice to make the test executables EXCLUDE_FOR_ALL, so that building the
tests
target builds them, but building the default target doesn't, but this step is not in principle required.The text was updated successfully, but these errors were encountered: