From 15c43ac5188ad111f2524d13c3d9b4ef428ad146 Mon Sep 17 00:00:00 2001 From: wentywenty <2321901849@qq.com> Date: Tue, 29 Jul 2025 16:38:58 +0800 Subject: [PATCH] Fixed a static library linking issue with the imu_complementary_filter package on Windows. --- imu_complementary_filter/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imu_complementary_filter/CMakeLists.txt b/imu_complementary_filter/CMakeLists.txt index cd1d015a..91cb66d9 100644 --- a/imu_complementary_filter/CMakeLists.txt +++ b/imu_complementary_filter/CMakeLists.txt @@ -36,6 +36,9 @@ ament_target_dependencies(complementary_filter # Causes the visibility macros to use dllexport rather than dllimport, # which is appropriate when building the dll but not consuming it. target_compile_definitions(complementary_filter PRIVATE "IMU_COMPLEMENTARY_FILTER_BUILDING_LIBRARY") +if(WIN32 AND MSVC) + set_target_properties(complementary_filter PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON) +endif() # create complementary_filter_node executable add_executable(complementary_filter_node