Skip to content

Running Audacity tests #5841

Answered by matoro
christian-heusel asked this question in Q&A
Jan 5, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Never mind, I got it. It's because of the rule in CMakeLists.txt that makes audacity_has_tests dependent on audacity_conan_enabled, and I guess just disables it silently otherwise. I don't understand why this was added in #2536 . But I have worked around it with this patch:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e631e18ad..02e05b147 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -222,15 +222,12 @@ cmd_option( ${_OPT}has_url_schemes_support
    "Build custom URL schemes support into Audacity"
    Off)
 
-include( CMakeDependentOption )
-
-cmake_dependent_option(
+cmd_option(
    ${_OPT}has_tests
    "Enables automated testing support"
-   On
-   "${_OPT}conan_enabled"
-   …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@crsib
Comment options

@christian-heusel
Comment options

@crsib
Comment options

@crsib
Comment options

@christian-heusel
Comment options

Answer selected by christian-heusel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants