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

Add CMake option to disable building tests #52

Merged

Conversation

cdalke-havoc
Copy link
Contributor

Overview

This PR adds a CMake option to toggle building the tests, which defaults to enabled. It's common for downstream projects to disable building the tests for external projects to reduce compile time.

By default, PING_CPP_BUILD_TESTS is set to ON, so the tests will still build.

Consumers of the library who want to disable building the tests can set the option before including the project:

option(PING_CPP_BUILD_TESTS "" OFF)

@cdalke-havoc
Copy link
Contributor Author

@patrickelectric Is there anyone on Blue Robotics who'd have time to review this?

@patrickelectric
Copy link
Member

Thanks for the PR @cdalke-havoc, sorry for missing it!
Be free to ping me if necessary.

@cdalke-havoc
Copy link
Contributor Author

@patrickelectric Thanks! sorry, just one more workflow approval if you don't mind, removed a log message so that this change doesn't add logging noise to other upstream projects.

@patrickelectric patrickelectric merged commit 08293f5 into bluerobotics:master Nov 12, 2024
1 check failed
@cdalke-havoc cdalke-havoc deleted the cdalke/allow-disable-build-tests branch November 12, 2024 14:43
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