From b1d5d988e8ade275c9aed1c7e60e61f73639f017 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Sun, 5 Jan 2025 19:35:42 +0100 Subject: [PATCH 1/2] io_context: Enable compilation of shared library on Windows --- io_context/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/io_context/CMakeLists.txt b/io_context/CMakeLists.txt index 54804aa..3c04653 100644 --- a/io_context/CMakeLists.txt +++ b/io_context/CMakeLists.txt @@ -25,6 +25,7 @@ endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) ## dependencies find_package(ament_cmake_auto REQUIRED) From 72a7fb5c221094249f6faee8b9db5fea0c1852d2 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Sun, 5 Jan 2025 19:39:26 +0100 Subject: [PATCH 2/2] Add Windows support in serial_driver and udp_driver --- serial_driver/CMakeLists.txt | 1 + udp_driver/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/serial_driver/CMakeLists.txt b/serial_driver/CMakeLists.txt index 4b15ca5..9055ace 100644 --- a/serial_driver/CMakeLists.txt +++ b/serial_driver/CMakeLists.txt @@ -24,6 +24,7 @@ endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) ## dependencies find_package(ament_cmake_auto REQUIRED) diff --git a/udp_driver/CMakeLists.txt b/udp_driver/CMakeLists.txt index a9b3c61..f78d262 100644 --- a/udp_driver/CMakeLists.txt +++ b/udp_driver/CMakeLists.txt @@ -25,6 +25,7 @@ endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) ## dependencies find_package(ament_cmake_auto REQUIRED)