Skip to content

option to disable testing by setting BUILD_TESTING to OFF #629

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Mar 3, 2022

Conversation

stigh
Copy link
Contributor

@stigh stigh commented Mar 2, 2022

Removed enable_testing(), since this seems to be enabled when the subdirectory "tests" is added.
Used the intrinsic CTests name BUILD_TESTING, ref: https://cmake.org/cmake/help/latest/module/CTest.html.

From my understanding, maybe the ideal way of tackling this issue would be to handle BUILD_TESTING as an intrinsic setting in test-drive? Then we might not need the
option(BUILD_TESTING "Define if tests should be enabled" ON)
in CMakeLists.txt

Removed enable_testing(), since is called if the tests subdirectory is added
@awvwgk awvwgk added the build: cmake Issue with stdlib's CMake build files label Mar 2, 2022
Copy link
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

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

Thanks for sharing. Looks like a useful addition.

@awvwgk awvwgk requested a review from a team March 2, 2022 18:43
Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
build: cmake Issue with stdlib's CMake build files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants