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

Move include(CTest) to inside testing guard #413

Merged
merged 1 commit into from Sep 18, 2023

Conversation

baconpaul
Copy link
Contributor

The RTAUDIO_BUILD_TESTING variable stops the testing target ejection but still does an include(CTest) which injects the standard CTest macros from enable_testing(). In rtmidi you include(CTest) inside the guard but in rtaudio you do not; as such using the cmake in a non-ctest project ejects multiple targets.

For now you can get around this with BUILD_TESTING globally off but that means you can't activate your own ctests optionally.

So move the include(CTEst) to be in the same spot as it is in rtmidi.

Thanks for great software!

The RTAUDIO_BUILD_TESTING variable stops the testing target ejection
but still does an include(CTest) which injects the standard CTest
macros from enable_testing(). In rtmidi you include(CTest) inside
the guard but in rtaudio you do not; as such using the cmake in
a non-ctest project ejects multiple targets.

For now you can get around this with BUILD_TESTING globally off
but that means you can't activate your own ctests optionally.

So move the include(CTEst) to be in the same spot as it is in
rtmidi.

Thanks for great software!
@garyscavone garyscavone merged commit 36b03e2 into thestk:master Sep 18, 2023
12 checks passed
@baconpaul baconpaul deleted the move-ctest branch September 18, 2023 23:50
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