diff options
author | Maciej Mrozowski <reavertm@gentoo.org> | 2010-06-26 17:55:59 +0000 |
---|---|---|
committer | Maciej Mrozowski <reavertm@gentoo.org> | 2010-06-26 17:55:59 +0000 |
commit | 0b5d342f1d2c5794a75d68684f91cd21b0aa2bc1 (patch) | |
tree | 3f3595f476f5c831ec62f2b4d8646851906bda85 /eclass/cmake-utils.eclass | |
parent | old (diff) | |
download | historical-0b5d342f1d2c5794a75d68684f91cd21b0aa2bc1.tar.gz historical-0b5d342f1d2c5794a75d68684f91cd21b0aa2bc1.tar.bz2 historical-0b5d342f1d2c5794a75d68684f91cd21b0aa2bc1.zip |
Properly handle NOCOLOR variable
Diffstat (limited to 'eclass/cmake-utils.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 2247c8625be1..91d7b9e70575 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.53 2010/06/21 16:39:49 reavertm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.54 2010/06/26 17:55:59 reavertm Exp $ # @ECLASS: cmake-utils.eclass # @MAINTAINER: @@ -308,7 +308,7 @@ enable_cmake-utils_src_configure() { SET (LIB_SUFFIX ${libdir/lib} CACHE STRING "library path suffix" FORCE) SET (CMAKE_INSTALL_LIBDIR ${libdir} CACHE PATH "Output directory for libraries") _EOF_ - [[ -n ${NOCOLOR} ]] && echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}" + [[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}" # Convert mycmakeargs to an array, for backwards compatibility # Make the array a local variable since <=portage-2.1.6.x does not |