Skip to content

Commit

Permalink
set target for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Oct 27, 2024
1 parent dbaa740 commit dadf698
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ endif()

if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message(STATUS "Compiler is Clang CMAKE_LIBRARY_ARCHITECTURE:${CMAKE_LIBRARY_ARCHITECTURE} CMAKE_SYSTEM_PROCESSOR:${CMAKE_SYSTEM_PROCESSOR}")
add_definitions(-target ${CMAKE_LIBRARY_ARCHITECTURE})
if(CMAKE_SYSTEM_PROCESSOR MATCHES "armv.*")
add_definitions(-target arm-linux-gnueabihf)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64")
add_definitions(-target aarch64-linux-gnu)
endif()
endif()

# prometheus
Expand Down

0 comments on commit dadf698

Please sign in to comment.