commit:     751dab52267ca575a8689784f0687b099f6229d8
Author:     Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  7 17:25:45 2017 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Tue Feb  7 17:25:45 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=751dab52

cmake-utils.eclass: set CMAKE_SYSTEM_PROCESSOR

Certain build systems rely on this for crosscompiling.
Patch by aballier.

Gentoo-bug: 607904

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

diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index d7870c4..b1d499c 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -538,6 +538,7 @@ enable_cmake-utils_src_configure() {
                SET (CMAKE_Fortran_COMPILER "${myFC/ /;}")
                SET (CMAKE_AR $(type -P $(tc-getAR)) CACHE FILEPATH "Archive 
manager" FORCE)
                SET (CMAKE_RANLIB $(type -P $(tc-getRANLIB)) CACHE FILEPATH 
"Archive index generator" FORCE)
+               SET (CMAKE_SYSTEM_PROCESSOR "${CHOST%%-*}")
        _EOF_
 
        # We are using the C compiler for assembly by default.

Reply via email to