We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d7620e commit 9b12499Copy full SHA for 9b12499
CMakeLists.txt
@@ -79,9 +79,11 @@ set(STATIC_LIBS
79
OpenSSL::SSL
80
)
81
82
-if(VCPKG_TARGET_TRIPLET MATCHES "arm64-linux")
83
- string(APPEND _GNU_COMMON_C_CXX_FLAGS " -mno-outline-atomics")
84
- list(APPEND STATIC_LIBS atomic)
+if(VCPKG_TARGET_TRIPLET MATCHES "arm64-linux" OR SYSTEM_ARCH MATCHES ".*(arm64|aarch64).*")
+ find_library(LIBATOMIC NAMES atomic)
+ if(LIBATOMIC)
85
+ list(APPEND STATIC_LIBS ${LIBATOMIC})
86
+ endif()
87
endif()
88
89
# For static extension, use static library with correct link order
0 commit comments