commit:     966418f400c96b5e91899335028269e62f356cfc
Author:     Joel Anderson <joel <AT> goatshriek <DOT> com>
AuthorDate: Sat Mar  8 12:07:16 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 11 09:02:17 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=966418f4

app-text/cherrytree: remove unused cmake flag

Specify the AUTO_RUN_TESTING flag only when testing is enabled, to
avoid a CMake warning about unused variables.

Closes: https://bugs.gentoo.org/950341
Signed-off-by: Joel Anderson <joel <AT> goatshriek.com>
Closes: https://github.com/gentoo/gentoo/pull/40958
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/cherrytree/cherrytree-1.2.0.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/app-text/cherrytree/cherrytree-1.2.0.ebuild 
b/app-text/cherrytree/cherrytree-1.2.0.ebuild
index 9c67de85be38..d2e8464e00c5 100644
--- a/app-text/cherrytree/cherrytree-1.2.0.ebuild
+++ b/app-text/cherrytree/cherrytree-1.2.0.ebuild
@@ -68,10 +68,15 @@ src_configure() {
                -DUSE_NLS=$(usex nls)
                -DBUILD_TESTING=$(usex test)
                -DUSE_SHARED_FMT_SPDLOG=ON
-               -DAUTO_RUN_TESTING=OFF
                -DUSE_SHARED_GTEST_GMOCK=$(usex test)
        )
 
+       if use test; then
+               mycmakeargs+=(
+                       -DAUTO_RUN_TESTING=OFF
+               )
+       fi
+
        cmake_src_configure
 }
 

Reply via email to