Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Dec 12, 2024
1 parent 3a1841e commit 12b365c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,13 @@ set(STATIC_LIBS
)

if(VCPKG_TARGET_TRIPLET MATCHES "arm64-linux" OR SYSTEM_ARCH MATCHES ".*(arm64|aarch64).*")
find_package(Atomic_ops CONFIG REQUIRED)
find_library(LIBATOMIC NAMES atomic)
if(LIBATOMIC)
target_link_libraries(main PRIVATE Atomic_ops::atomic_ops Atomic_ops::atomic_ops_gpl)
if(Atomic_ops)
message(STATUS "Atomic_ops found")
list(APPEND STATIC_LIBS Atomic_ops::atomic_ops Atomic_ops::atomic_ops_gpl)
elseif(LIBATOMIC)
message(STATUS "libatomic found at ${LIBATOMIC}")
list(APPEND STATIC_LIBS ${LIBATOMIC})
else()
Expand Down

0 comments on commit 12b365c

Please sign in to comment.