Use dpkg-architecture, not arch, to disable touch emulation
Otherwise cross-building breaks
commit7268a098d193f73cf704466d8f242a84e7d6e11c
authorMichał Sawicz <michal.sawicz@canonical.com>
dateThu 3 Mar 2016, 19:41 (11 years ago)
parentc09b516
CMakeLists.txt+1−1
@@ -131,7 +131,7 @@ if(NOT QUIET_LOGGER)
131131 set(STDOUT_LOGGER "-o" "-,txt")
132132endif()
133133
134−execute_process(COMMAND arch OUTPUT_VARIABLE ARCH)
134+execute_process(COMMAND dpkg-architecture -qDEB_HOST_ARCH OUTPUT_VARIABLE ARCH)
135135if (NOT ARCH MATCHES "arm*")
136136 set(ENABLE_TOUCH_EMULATION true)
137137 add_definitions(-DUNITY8_ENABLE_TOUCH_EMULATION)