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

[cmake] Keep unit tests as optional #46

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

uilianries
Copy link
Contributor

When packaging Up-cpp (e.g. Conan), unit tests are not needed, so the usual flow is skipping it.

This PR adds the option UP_CPP_BUILD_TESTING, and supports the native CMake option BUILD_TESTING (https://cmake.org/cmake/help/latest/command/enable_testing.html)

It will build tests by default, but will give the option to skip it.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
@uilianries

This comment was marked as resolved.

@uilianries uilianries closed this Feb 6, 2024
@uilianries uilianries reopened this Feb 6, 2024
@stevenhartley stevenhartley merged commit 2558713 into eclipse-uprotocol:main Feb 7, 2024
1 check passed
@stevenhartley
Copy link

Thank you @uilianries !

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.

2 participants