diff options
Diffstat (limited to 'host/lib/utils')
-rw-r--r-- | host/lib/utils/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/host/lib/utils/CMakeLists.txt b/host/lib/utils/CMakeLists.txt index 0d18945ca..639b3e94e 100644 --- a/host/lib/utils/CMakeLists.txt +++ b/host/lib/utils/CMakeLists.txt @@ -178,6 +178,21 @@ set_source_files_properties( ) ######################################################################## +# Check if we dynamically need to link against libatomic +# "Guerney, deploy the family atomics!" +######################################################################## +message(STATUS "") +message(STATUS "Configuring atomics support...") +include(UHDAtomics) +CHECK_ATOMICS_LIB_REQUIRED(NEED_LIBATOMIC) +if(NEED_LIBATOMIC) + message(STATUS " Atomics support is provided by separate libatomic.") + LIBUHD_APPEND_LIBS("atomic") +else() + message(STATUS " Atomics support is built-in, no linking required.") +endif() + +######################################################################## # Define UHD_PKG_DATA_PATH for paths.cpp ######################################################################## file(TO_NATIVE_PATH "${CMAKE_INSTALL_PREFIX}" UHD_PKG_PATH) |