config: fix cross-compiled cmake build

The upstream cmake eclass has started properly building cmake in
cross-compiler mode so it doesn't attempt to run native code. Without
those checks the test results need to be defined statically.
This commit is contained in:
Michael Marineau 2014-12-06 18:34:12 -08:00
parent 66b2a6b33b
commit 594933247d
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# Fix up cross compiling CMake
SET(KWSYS_LFS_WORKS "1" CACHE STRING "" FORCE)
SET(KWSYS_CHAR_IS_SIGNED "1" CACHE STRING "" FORCE)

View File

@ -0,0 +1,3 @@
if [[ $(cros_target) != "cros_host" ]] ; then
CMAKE_EXTRA_CACHE_FILE="${CROS_ADDONS_TREE}/config/cross_compile_config.cmake"
fi