We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a1841e commit 12b365cCopy full SHA for 12b365c
CMakeLists.txt
@@ -80,8 +80,13 @@ set(STATIC_LIBS
80
)
81
82
if(VCPKG_TARGET_TRIPLET MATCHES "arm64-linux" OR SYSTEM_ARCH MATCHES ".*(arm64|aarch64).*")
83
+ find_package(Atomic_ops CONFIG REQUIRED)
84
find_library(LIBATOMIC NAMES atomic)
- 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)
90
message(STATUS "libatomic found at ${LIBATOMIC}")
91
list(APPEND STATIC_LIBS ${LIBATOMIC})
92
else()
0 commit comments