From 54393a804fb71ed69474b9272a50583a90e005f8 Mon Sep 17 00:00:00 2001 From: Marc Alff Date: Thu, 6 Oct 2022 18:18:36 +0200 Subject: [PATCH] Detect ARCH=sparc in CMake (#1660) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1b6934003..c3e74330a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,10 +64,13 @@ else() set(ARCH riscv) elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(s390x.*|S390X.*)") set(ARCH s390x) + elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(sparc.*|SPARC.*)") + set(ARCH sparc) else() message( FATAL_ERROR - "opentelemetry-cpp: unrecognized target processor configuration!") + "opentelemetry-cpp: unrecognized target processor ${CMAKE_SYSTEM_PROCESSOR} configuration!" + ) endif() endif() message(STATUS "Building for architecture ARCH=${ARCH}")