diff options
| author | Maciej Mrozowski <reavertm@gentoo.org> | 2016-05-18 09:09:16 +0200 |
|---|---|---|
| committer | Johannes Huber <johu@gentoo.org> | 2016-05-18 09:09:58 +0200 |
| commit | 293219251d22a3a1d1304a6773d2a64ae40fa8cf (patch) | |
| tree | 719cd0c759b17f8608e8f7a05a4d0522a76e5c26 /eclass | |
| parent | 3c2146a38b7fe260ca3e059cde0e3998c9e81ed3 (diff) | |
| download | kde-293219251d22a3a1d1304a6773d2a64ae40fa8cf.tar.gz kde-293219251d22a3a1d1304a6773d2a64ae40fa8cf.tar.bz2 kde-293219251d22a3a1d1304a6773d2a64ae40fa8cf.zip | |
cmake-utils.eclass: enable CMAKE_WARN_UNUSED_CLI for EAPI 6
Diffstat (limited to 'eclass')
| -rw-r--r-- | eclass/cmake-utils.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index ebcb631b2dd..427c13fe6cc 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -87,7 +87,6 @@ _CMAKE_UTILS_ECLASS=1 # Warn about variables that are declared on the command line # but not used. Might give false-positives. # "no" to disable (default) or anything else to enable. -: ${CMAKE_WARN_UNUSED_CLI:=no} # @ECLASS-VARIABLE: PREFIX # @DESCRIPTION: @@ -113,7 +112,8 @@ _CMAKE_UTILS_ECLASS=1 # Should be set by user in a per-package basis in /etc/portage/package.env. case ${EAPI} in - 2|3|4|5|6) : ;; + 2|3|4|5) : ${CMAKE_WARN_UNUSED_CLI:=no} ;; + 6) : ${CMAKE_WARN_UNUSED_CLI:=yes} ;; *) die "EAPI=${EAPI:-0} is not supported" ;; esac |
