summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Scharrer <daniel@constexpr.org>2015-12-05 00:27:08 +0100
committerLars Wendler <polynomial-c@gentoo.org>2015-12-09 15:49:10 +0100
commit82d2bfbeefb8b2c042e5d4393ee922feddaab121 (patch)
treec4b2edf46b7bb271bda705ae9aa9e632b2f16357 /eclass/cmake-utils.eclass
parentMerge remote-tracking branch 'remotes/arcriley/master' (diff)
downloadgentoo-82d2bfbeefb8b2c042e5d4393ee922feddaab121.tar.gz
gentoo-82d2bfbeefb8b2c042e5d4393ee922feddaab121.tar.bz2
gentoo-82d2bfbeefb8b2c042e5d4393ee922feddaab121.zip
cmake-utils.eclass: Fix cross-compiling with cmake-3.4
We are interested in the CMake version on the host system, the sysroot might not even have CMake installed at all. Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 2ebde45f1787..ea88e4833316 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -468,7 +468,7 @@ enable_cmake-utils_src_configure() {
if $(version_is_at_least 3.4.0 $(get_version_component_range 1-3 ${PV})) ; then
includes="<INCLUDES>"
fi
- elif has_version \>=dev-util/cmake-3.4.0_rc1 ; then
+ elif ROOT=/ has_version \>=dev-util/cmake-3.4.0_rc1 ; then
includes="<INCLUDES>"
fi
cat > "${build_rules}" <<- _EOF_ || die