cmake-utils.eclass: set CMAKE_SYSTEM_PROCESSOR, certain buildsystems rely on this...
authorMaciej Mrozowski <reavertm@gentoo.org>
Mon, 6 Feb 2017 22:49:19 +0000 (23:49 +0100)
committerMaciej Mrozowski <reavertm@gentoo.org>
Mon, 6 Feb 2017 23:01:57 +0000 (00:01 +0100)
eclass/cmake-utils.eclass

index 7b3500b1972ee08deca1addcdf097dc93ca65190..512bd93c7b3a9e52764fcdeb9ec9a388a1e26106 100644 (file)
@@ -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.