commit:     f898baed4661e93c2686e34baf46068b14066244
Author:     Daniel Scharrer <daniel <AT> constexpr <DOT> org>
AuthorDate: Fri Dec  4 23:27:08 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Dec  9 15:13:17 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=f898baed

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.

 eclass/cmake-utils.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index dd46275..d5d06c5 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -485,7 +485,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

Reply via email to