Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Detect ARCH=sparc in CMake.
  • Loading branch information
marcalff committed Oct 6, 2022
1 parent 787d9c1 commit bbedaec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ 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}")
Expand Down

0 comments on commit bbedaec

Please sign in to comment.