Skip to content

Commit

Permalink
add target when compiling with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Oct 27, 2024
1 parent 272e023 commit 0427c3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ else()
endif()
endif()

if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message(STATUS "Compiler is Clang")
add_definitions(--target ${CMAKE_LIBRARY_ARCHITECTURE})
endif()

# prometheus
include(GenerateExportHeader)
include(GNUInstallDirs)
Expand Down

0 comments on commit 0427c3e

Please sign in to comment.