diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-12-16 14:36:55 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-12-16 14:36:55 +0000 |
commit | 1048857577342a8042abce4ccc1ea17c7eadc17f (patch) | |
tree | 665cf7bd8e1232e5c25835746ad83a8fea47777c | |
parent | Removal of fortran.eclass, #348851 (diff) | |
download | gentoo-2-1048857577342a8042abce4ccc1ea17c7eadc17f.tar.gz gentoo-2-1048857577342a8042abce4ccc1ea17c7eadc17f.tar.bz2 gentoo-2-1048857577342a8042abce4ccc1ea17c7eadc17f.zip |
Allow overriding of cmake binary.
-rw-r--r-- | eclass/cmake-utils.eclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 9205a79530af..f22c3fa77fee 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.60 2010/10/13 16:40:34 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.61 2010/12/16 14:36:55 scarabeus Exp $ # @ECLASS: cmake-utils.eclass # @MAINTAINER: @@ -138,6 +138,11 @@ _use_me_now_inverted() { # install/lib/bin prefixes. # Use -DCMAKE_INSTALL_PREFIX=... CMake variable instead. +# @ECLASS-VARIABLE: CMAKE_BINARY +# @DESCRIPTION: +# Eclass can use different cmake binary than the one provided in by system. +: ${CMAKE_BINARY:=cmake} + # Determine using IN or OUT source build _check_build_dir() { : ${CMAKE_USE_DIR:=${S}} @@ -344,8 +349,8 @@ enable_cmake-utils_src_configure() { mkdir -p "${CMAKE_BUILD_DIR}" pushd "${CMAKE_BUILD_DIR}" > /dev/null debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: mycmakeargs is ${mycmakeargs_local[*]}" - echo cmake "${cmakeargs[@]}" "${CMAKE_USE_DIR}" - cmake "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed" + echo "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" + "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed" popd > /dev/null } |