on xenial help sign in
Use dpkg-architecture, not arch, to disable touch emulation

Otherwise cross-building breaks Approved by: Albert Astals Cid

commitbf3563359d3c69e9adb50007512aa24ed6c1c4c7 authorMichał Sawicz <michal.sawicz@canonical.com> dateThu 10 Mar 2016, 22:43 (11 years ago) parenta397fec7268a09
1 file changed+1−1
CMakeLists.txt+1−1
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)