Skip to content

Commit

Permalink
[cmakelists] removed atomic library linking
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed Oct 16, 2024
1 parent f0f0fae commit c50549a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 1 addition & 5 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

0 comments on commit c50549a

Please sign in to comment.