cmake-utils.eclass: Fix cross-compiling with cmake-3.4
authorDaniel Scharrer <daniel@constexpr.org>
Fri, 4 Dec 2015 23:27:08 +0000 (00:27 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 9 Dec 2015 14:49:10 +0000 (15:49 +0100)
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>
eclass/cmake-utils.eclass

index 2ebde45f1787c0b6dcf53fcc6be93e4afa7fc5b0..ea88e4833316fb74f3a0119067e6b1512888da1a 100644 (file)
@@ -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