From: Mika Lindqvist Date: Wed, 12 Apr 2017 19:30:58 +0000 (+0300) Subject: CMakeLists.txt: Fix cross-compiling. (#104) X-Git-Tag: 1.9.9-b1~660^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52fdbc94d214a04a7b3f2bd758d42c95eb3f437a;p=thirdparty%2Fzlib-ng.git CMakeLists.txt: Fix cross-compiling. (#104) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d1bb52f0..ebe9779f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ check_include_file(stddef.h HAVE_STDDEF_H) # # Options parsing # -set(ARCH ${CMAKE_HOST_SYSTEM_PROCESSOR}) +set(ARCH ${CMAKE_SYSTEM_PROCESSOR}) message(STATUS "Architecture: ${ARCH}") option (ZLIB_COMPAT "Compile with zlib compatible API" OFF)