diff --git a/CMakeLists.txt b/CMakeLists.txt index 69daa323d..ff1f2ba8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,10 +34,6 @@ else() add_definitions(-D__STDC_FORMAT_MACROS) endif() -if(${CMAKE_SYSTEM_NAME} STREQUAL Linux) - list(APPEND DEPLIBS "atomic") -endif() - # Sources to build # (use add_dir_sources function to add source/header files from the CMakeLists files of subdirectories) add_subdirectory(src) diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index f16e0455a..2ed234956 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -53,11 +53,7 @@ add_executable(${BINARY} ../utils/XMLUtils.cpp ) -if(${CMAKE_SYSTEM_NAME} STREQUAL Linux) - SET(ADD_LINK_LIBS "atomic") -endif() - -target_link_libraries(${BINARY} PRIVATE ${BENTO4_LIBRARIES} ${PUGIXML_LIBRARIES} ${GTEST_LIBRARIES} Threads::Threads ${CMAKE_DL_LIBS} ${ADD_LINK_LIBS}) +target_link_libraries(${BINARY} PRIVATE ${BENTO4_LIBRARIES} ${PUGIXML_LIBRARIES} ${GTEST_LIBRARIES} Threads::Threads ${CMAKE_DL_LIBS}) set(TEST_DATA_DIR "${CMAKE_SOURCE_DIR}/src/test/manifests") add_test(NAME manifest_tests COMMAND ${BINARY} "${TEST_DATA_DIR}")