on xenial help sign in
Use dpkg-architecture, not arch, to disable touch emulation
bf35633Michał Sawicz
CMakeLists.txt+1−1
@@ -131,7 +131,7 @@ if(NOT QUIET_LOGGER)
131 set(STDOUT_LOGGER "-o" "-,txt")
131 set(STDOUT_LOGGER "-o" "-,txt")
132endif()
132endif()
133
133
134−execute_process(COMMAND arch OUTPUT_VARIABLE ARCH)
134+execute_process(COMMAND dpkg-architecture -qDEB_HOST_ARCH OUTPUT_VARIABLE ARCH)
135if (NOT ARCH MATCHES "arm*")
135if (NOT ARCH MATCHES "arm*")
136 set(ENABLE_TOUCH_EMULATION true)
136 set(ENABLE_TOUCH_EMULATION true)
137 add_definitions(-DUNITY8_ENABLE_TOUCH_EMULATION)
137 add_definitions(-DUNITY8_ENABLE_TOUCH_EMULATION)