--- CMakeLists.txt.orig 2020-08-28 19:43:13 UTC +++ CMakeLists.txt @@ -45,12 +45,17 @@ set(ISPC_BUILD TRUE) project(${PROJECT_NAME}) set(X86_HOST FALSE) -if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "AMD64|86") +if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "amd64|86") set(X86_HOST TRUE) endif() +set(ARM_HOST FALSE) +if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "aarch64") + set(ARM_HOST TRUE) +endif() + option(X86_ENABLED "Enable x86 support" ${X86_HOST}) -option(ARM_ENABLED "Enable ARM support" ON) +option(ARM_ENABLED "Enable ARM support" ${ARM_HOST}) option(WASM_ENABLED "Enable experimental Web Assembly support" OFF) option(GENX_ENABLED "Enable GenX support" OFF) option(ISPC_INCLUDE_EXAMPLES "Generate build targets for the ISPC examples" ON)