Skip to content

Commit 998cfb1

Browse files
wentywentymintar
authored andcommitted
Fixed a static library linking issue with the imu_complementary_filter package on Windows. (#218)
1 parent 14bb1b9 commit 998cfb1

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
@@ -37,6 +37,9 @@ target_link_libraries(complementary_filter PUBLIC
3737
# Causes the visibility macros to use dllexport rather than dllimport,
3838
# which is appropriate when building the dll but not consuming it.
3939
target_compile_definitions(complementary_filter PRIVATE "IMU_COMPLEMENTARY_FILTER_BUILDING_LIBRARY")
40+
if(WIN32 AND MSVC)
41+
set_target_properties(complementary_filter PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
42+
endif()
4043

4144
# create complementary_filter_node executable
4245
add_executable(complementary_filter_node

0 commit comments

Comments
 (0)