Skip to content

Commit 9af59e8

Browse files
authored
Revert "check and link against libatomic (#172)" (#177)
This reverts commit 67f064e. Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
1 parent 67f064e commit 9af59e8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

CMakeLists.txt

-9
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ if(NOT CMAKE_CXX_STANDARD)
1111
set(CMAKE_CXX_STANDARD 14)
1212
endif()
1313

14-
include(CheckLibraryExists)
15-
1614
find_package(ament_cmake_python REQUIRED)
1715
find_package(ament_cmake_ros REQUIRED)
1816

@@ -123,8 +121,6 @@ if(BUILD_TESTING)
123121

124122
find_package(launch_testing_ament_cmake REQUIRED)
125123

126-
check_library_exists(atomic __atomic_load_8 "" HAVE_LIBATOMICS)
127-
128124
if(ament_cmake_cppcheck_FOUND)
129125
ament_cppcheck(
130126
TESTNAME "cppcheck_logging_macros"
@@ -218,11 +214,6 @@ if(BUILD_TESTING)
218214
LANGUAGE C
219215
)
220216
target_link_libraries(test_atomics_executable ${PROJECT_NAME})
221-
if(HAVE_LIBATOMICS)
222-
target_link_libraries(test_atomics_executable atomic)
223-
ament_export_libraries(atomic)
224-
endif()
225-
226217
add_test(NAME test_atomics COMMAND test_atomics_executable)
227218

228219
rcutils_custom_add_gmock(test_error_handling test/test_error_handling.cpp

0 commit comments

Comments
 (0)