kde5.eclass: Don't add BUILD_TESTING=OFF if test not in IUSE
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 23 Oct 2017 22:08:04 +0000 (00:08 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 26 Oct 2017 08:22:33 +0000 (10:22 +0200)
eclass/kde5.eclass

index fba09c0118616a8421bd94a699a6dad54eb4ba8a..da0faafec26b6d107b5031d9dd53cf8a07fac612 100644 (file)
@@ -620,7 +620,7 @@ kde5_src_configure() {
 
        local cmakeargs
 
-       if ! use_if_iuse test ; then
+       if in_iuse test && ! use test ; then
                cmakeargs+=( -DBUILD_TESTING=OFF )
 
                if [[ ${KDE_TEST} = optional ]] ; then