From: Andreas Sturmlechner Date: Mon, 23 Oct 2017 22:08:04 +0000 (+0200) Subject: kde5.eclass: Don't add BUILD_TESTING=OFF if test not in IUSE X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cbd8067af84cfbe52d9a44c93a15270259d23209;p=gentoo.git kde5.eclass: Don't add BUILD_TESTING=OFF if test not in IUSE --- diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index fba09c011861..da0faafec26b 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -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