Skip to content
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

Fix #440: disable tests and examples using BUILD_TESTING. #442

Merged
1 commit merged into from Jun 26, 2024
Merged

Fix #440: disable tests and examples using BUILD_TESTING. #442

1 commit merged into from Jun 26, 2024

Conversation

ghost
Copy link

@ghost ghost commented Jun 25, 2024

Fix #440: disable tests and examples using BUILD_TESTING.

By providing cmake with BUILD_TESTING=OFF, no test or example will be built.

BUILD_TESTING is ON by default, since we are using enable_testing along with CTest.

Signed-off-by: thb-sb [email protected]

@ghost ghost self-assigned this Jun 25, 2024
@ghost ghost marked this pull request as ready for review June 25, 2024 15:52
@ghost ghost requested a review from baentsch as a code owner June 25, 2024 15:52
Copy link
Member

@baentsch baentsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense as-is, Thanks! Just wondering whether it may be even better to document explicitly that all ctest config vars (as all other cmake config options) drive the oqsprovider build (in CONFIGURE.md)? Please amend/merge at your discretion, @thb-sb

By providing cmake with `BUILD_TESTING=OFF`, no test or example will be built.

`BUILD_TESTING` is `ON` by default, since we are using [`enable_testing`] along with `CTest`.


[`enable_testing`]: https://cmake.org/cmake/help/latest/command/enable_testing.html


Signed-off-by: thb-sb <[email protected]>
@ghost
Copy link
Author

ghost commented Jun 26, 2024

Makes sense as-is, Thanks! Just wondering whether it may be even better to document explicitly that all ctest config vars (as all other cmake config options) drive the oqsprovider build (in CONFIGURE.md)? Please amend/merge at your discretion, @thb-sb

Makes total sense!

I've added an entry for BUILD_TESTING in CONFIGURE.md in ba13edc

@ghost ghost merged commit 8f37521 into open-quantum-safe:main Jun 26, 2024
48 of 49 checks passed
@ghost ghost deleted the pr442 branch June 26, 2024 06:08
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build static library only without tests nor examples.
1 participant