-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Test libraries and executables should be declared EXCLUDE_FROM_ALL #229
Comments
Isn't this the case already through use of Or did I miss any? Lines 39 to 44 in f7b1de5
|
Oh, that's examples, not tests.
Not sure what we're supposed to do with these. I usually treat them as compile tests. |
In the context of what we have right now it makes sense then I guess The usual workflow for pretty much any software I built so far (and that's a lot given I'm co-maintaining an HPC cluster) is: With EXCLUDE_FROM_ALL we break this "convention" by having I try to go for the least element of surprise and deviating from semi-standard behavior, especially if it leads to silent unexpected results, is surprising. So what was the motivation? IMO building ALL with |
No,
But that's not what it does at all. It builds all of Boost, not "the library". |
You are right. I confused it with the case that no tests were added at all in which case ctest will succeed without having run anything. There is the flag |
--output-on-failure and --no-tests=error should have been the default, really. I have a |
The Boost convention is that
cmake --build .
only builds the libraries. Test libraries and executables are built withcmake --build . --target tests
.The text was updated successfully, but these errors were encountered: