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

build: only include CTest when building the pugixml tests #584

Merged
merged 2 commits into from
Oct 6, 2023
Merged

build: only include CTest when building the pugixml tests #584

merged 2 commits into from
Oct 6, 2023

Conversation

richardapeters
Copy link
Contributor

Currently, the CMakeLists.txt unconditionally includes CTest. As a consequence, BUILD_TESTING is defined by CTest, which has unintended consequences for any project that uses pugixml: a project that has a certain configuration in which the tests are disabled suddenly finds that testing is enabled after including pugixml.

By making include(CTest) conditional on PUGIXML_BUILD_TESTS, BUILD_TESTING is not set anymore in other projects.

@zeux zeux merged commit ef856bf into zeux:master Oct 6, 2023
22 checks passed
@zeux
Copy link
Owner

zeux commented Oct 6, 2023

Thanks!

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.

None yet

2 participants