diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-04-28 23:06:54 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-04-28 23:06:54 -0400 |
commit | deda464b235bf33739cf09b93918d08029d7112c (patch) | |
tree | 8a87a73be9ab146cc10896bc5886378fe657e061 /CMakeLists.txt | |
parent | c5af6edf0d4c51a7e7cd6d038a17a9ec84e63e60 (diff) | |
download | abaddon-portaudio-deda464b235bf33739cf09b93918d08029d7112c.tar.gz abaddon-portaudio-deda464b235bf33739cf09b93918d08029d7112c.zip |
try linking atomic if necessary
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dc31d2..c6f0ec0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,6 +109,11 @@ target_link_libraries(abaddon ${ZLIB_LIBRARY}) target_link_libraries(abaddon ${NLOHMANN_JSON_LIBRARIES}) target_link_libraries(abaddon ${CMAKE_DL_LIBS}) +include(CheckAtomic) +if (NOT HAVE_CXX_ATOMICS_WITHOUT_LIB OR NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB) + target_link_libraries(abaddon atomic) +endif () + if (USE_LIBHANDY) find_package(libhandy REQUIRED) target_include_directories(abaddon PUBLIC ${libhandy_INCLUDE_DIRS}) |