From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1A440138262 for ; Tue, 17 May 2016 23:18:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87CD61426B; Tue, 17 May 2016 23:18:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 331461426B for ; Tue, 17 May 2016 23:18:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C4FE33BF11 for ; Tue, 17 May 2016 23:18:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 22457327 for ; Tue, 17 May 2016 23:18:11 +0000 (UTC) From: "Maciej Mrozowski" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Mrozowski" Message-ID: <1463526957.3600c714eb86c78e150e4eb8a6fd854ea0d42144.reavertm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/cmake-utils.eclass X-VCS-Directories: eclass/ X-VCS-Committer: reavertm X-VCS-Committer-Name: Maciej Mrozowski X-VCS-Revision: 3600c714eb86c78e150e4eb8a6fd854ea0d42144 X-VCS-Branch: master Date: Tue, 17 May 2016 23:18:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fb0e5513-9d79-4034-8828-47fd7739f1cf X-Archives-Hash: 3e2a5efbf1e3b0ed8b264f7425b427a8 commit: 3600c714eb86c78e150e4eb8a6fd854ea0d42144 Author: Maciej Mrozowski gentoo org> AuthorDate: Tue May 17 23:15:57 2016 +0000 Commit: Maciej Mrozowski gentoo org> CommitDate: Tue May 17 23:15:57 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3600c714 cmake-utils.eclass: enable CMAKE_WARN_UNUSED_CLI for EAPI 6 eclass/cmake-utils.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index ebcb631..427c13f 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