cmake-utils.eclass: enable CMAKE_WARN_UNUSED_CLI for EAPI 6
authorMaciej Mrozowski <reavertm@gentoo.org>
Tue, 17 May 2016 23:15:57 +0000 (01:15 +0200)
committerMaciej Mrozowski <reavertm@gentoo.org>
Tue, 17 May 2016 23:15:57 +0000 (01:15 +0200)
eclass/cmake-utils.eclass

index ebcb631b2dd3afda36c4653b05f4b8c23d4dd433..427c13fe6cc2c0d0883a508e7abd6b3db0c338db 100644 (file)
@@ -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