Skip to content

Commit 12b365c

Browse files
authored
Try again
1 parent 3a1841e commit 12b365c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,13 @@ set(STATIC_LIBS
8080
)
8181

8282
if(VCPKG_TARGET_TRIPLET MATCHES "arm64-linux" OR SYSTEM_ARCH MATCHES ".*(arm64|aarch64).*")
83+
find_package(Atomic_ops CONFIG REQUIRED)
8384
find_library(LIBATOMIC NAMES atomic)
84-
if(LIBATOMIC)
85+
target_link_libraries(main PRIVATE Atomic_ops::atomic_ops Atomic_ops::atomic_ops_gpl)
86+
if(Atomic_ops)
87+
message(STATUS "Atomic_ops found")
88+
list(APPEND STATIC_LIBS Atomic_ops::atomic_ops Atomic_ops::atomic_ops_gpl)
89+
elseif(LIBATOMIC)
8590
message(STATUS "libatomic found at ${LIBATOMIC}")
8691
list(APPEND STATIC_LIBS ${LIBATOMIC})
8792
else()

0 commit comments

Comments
 (0)