Skip to content

Commit 7cdf49e

Browse files
authored
Fixed a static library linking issue with the imu_complementary_filter package on Windows. (#218)
1 parent 69261f5 commit 7cdf49e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

imu_complementary_filter/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ ament_target_dependencies(complementary_filter
3636
# Causes the visibility macros to use dllexport rather than dllimport,
3737
# which is appropriate when building the dll but not consuming it.
3838
target_compile_definitions(complementary_filter PRIVATE "IMU_COMPLEMENTARY_FILTER_BUILDING_LIBRARY")
39+
if(WIN32 AND MSVC)
40+
set_target_properties(complementary_filter PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
41+
endif()
3942

4043
# create complementary_filter_node executable
4144
add_executable(complementary_filter_node

0 commit comments

Comments
 (0)