Skip to content

Commit

Permalink
Export all symbols on Windows in gripper_controllers
Browse files Browse the repository at this point in the history
Co-authored-by: Sai Kishor Kothakota <[email protected]>
  • Loading branch information
traversaro and saikishor authored Jan 5, 2025
1 parent 35e0cef commit 9523c10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gripper_controllers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
cmake_minimum_required(VERSION 3.16)
project(gripper_controllers)

if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
# using this instead of visibility macros
# S1 from https://github.com/ros-controls/ros2_controllers/issues/1053
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
add_compile_options(-Wall -Wextra -Wpedantic -Werror=conversion -Werror=unused-but-set-variable
-Werror=return-type -Werror=shadow -Werror=format -Werror=range-loop-construct
-Werror=missing-braces)
Expand Down

0 comments on commit 9523c10

Please sign in to comment.