From 8900d469e524d1c19ee83a662d1d28e47b8d22b8 Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Wed, 10 Apr 2019 15:41:11 -0500 Subject: [PATCH] Add setupapi to ament_export_libraries This prevents dependent libraries from failing with something like: serial.lib(list_ports_win.obj) : error LNK2019: unresolved external symbol __imp_SetupDiEnumDeviceInfo referenced in --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb0367e..a135e87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,7 @@ elseif(UNIX) target_link_libraries(${PROJECT_NAME} rt pthread) else() target_link_libraries(${PROJECT_NAME} setupapi) + ament_export_libraries(setupapi) endif() ## Uncomment for example