Skip to content

Commit fff6ee3

Browse files
Try to fix msvc atomic
1 parent 2f8d285 commit fff6ee3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ if(WIN32)
1616
)
1717
# set the same behavior for windows as it is on linux
1818
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
19+
20+
set(FOUND_LIBATOMIC TRUE)
1921
endif()
2022

2123
set(THIS_PACKAGE_INCLUDE_DEPENDS
@@ -83,7 +85,7 @@ if(BUILD_TESTING)
8385
target_link_libraries(realtime_buffer_tests realtime_tools)
8486

8587
ament_add_gmock(lock_free_queue_tests test/lock_free_queue_tests.cpp)
86-
target_link_libraries(lock_free_queue_tests realtime_tools Boost::boost)
88+
target_link_libraries(lock_free_queue_tests realtime_tools atomic Boost::boost)
8789

8890
ament_add_gmock(realtime_clock_tests test/realtime_clock_tests.cpp)
8991
target_link_libraries(realtime_clock_tests realtime_tools)

0 commit comments

Comments
 (0)