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 5C7271381F3 for ; Sun, 14 Jul 2013 12:50:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E99F1E097C; Sun, 14 Jul 2013 12:50:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 771B2E097C for ; Sun, 14 Jul 2013 12:50:19 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 63AC633E7C5 for ; Sun, 14 Jul 2013 12:50:18 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2322) id 26BEE2171C; Sun, 14 Jul 2013 12:50:17 +0000 (UTC) From: "Julian Ospald (hasufell)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, hasufell@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog cmake-utils.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: ChangeLog cmake-utils.eclass X-VCS-Directories: eclass X-VCS-Committer: hasufell X-VCS-Committer-Name: Julian Ospald Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20130714125017.26BEE2171C@flycatcher.gentoo.org> Date: Sun, 14 Jul 2013 12:50:17 +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: c0b1fabe-0155-4c44-bf33-5903b630cacd X-Archives-Hash: 22aade81d223413596efd847f1ea0efb hasufell 13/07/14 12:50:17 Modified: ChangeLog cmake-utils.eclass Log: add CMAKE_WARN_UNUSED_CLI to cmake-utils.eclass Revision Changes Path 1.879 eclass/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.879&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.879&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.878&r2=1.879 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v retrieving revision 1.878 retrieving revision 1.879 diff -u -r1.878 -r1.879 --- ChangeLog 11 Jul 2013 18:38:59 -0000 1.878 +++ ChangeLog 14 Jul 2013 12:50:16 -0000 1.879 @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.878 2013/07/11 18:38:59 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.879 2013/07/14 12:50:16 hasufell Exp $ + + 14 Jul 2013; Julian Ospald cmake-utils.eclass: + add CMAKE_WARN_UNUSED_CLI 11 Jul 2013; Ulrich Müller bzr.eclass: New variable EBZR_UNPACK_DIR. 1.99 eclass/cmake-utils.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/cmake-utils.eclass?rev=1.99&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/cmake-utils.eclass?rev=1.99&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/cmake-utils.eclass?r1=1.98&r2=1.99 Index: cmake-utils.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v retrieving revision 1.98 retrieving revision 1.99 diff -u -r1.98 -r1.99 --- cmake-utils.eclass 2 Jul 2013 14:36:20 -0000 1.98 +++ cmake-utils.eclass 14 Jul 2013 12:50:16 -0000 1.99 @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.98 2013/07/02 14:36:20 kensington Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.99 2013/07/14 12:50:16 hasufell Exp $ # @ECLASS: cmake-utils.eclass # @MAINTAINER: @@ -50,6 +50,13 @@ # At this point only "emake" and "ninja" are supported. CMAKE_MAKEFILE_GENERATOR="${CMAKE_MAKEFILE_GENERATOR:-emake}" +# @ECLASS-VARIABLE: CMAKE_WARN_UNUSED_CLI +# @DESCRIPTION: +# 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="${CMAKE_WARN_UNUSED_CLI:-no}" + CMAKEDEPEND="" case ${WANT_CMAKE} in always) @@ -472,11 +479,17 @@ local mycmakeargs_local=("${mycmakeargs[@]}") fi + if [[ ${CMAKE_WARN_UNUSED_CLI} == no ]] ; then + local warn_unused_cli="--no-warn-unused-cli" + else + local warn_unused_cli="" + fi + # Common configure parameters (overridable) # NOTE CMAKE_BUILD_TYPE can be only overriden via CMAKE_BUILD_TYPE eclass variable # No -DCMAKE_BUILD_TYPE=xxx definitions will be in effect. local cmakeargs=( - --no-warn-unused-cli + ${warn_unused_cli} -C "${common_config}" -G "$(_generator_to_use)" -DCMAKE_INSTALL_PREFIX="${EPREFIX}${PREFIX}"