Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Jun 16, 2025

The package compiles a library, but does not expose any symbol on Windows, so if the CMake project is compiled with -DBUILD_SHARED_LIBS:BOOL=ON on Windows, no library is actually generated.

On Linux and macOS, everything compiles fine with -DBUILD_SHARED_LIBS:BOOL=ON as by default all the symbols are visible. We can achieve exactly the same behavior in Windows by setting to ON the CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS CMake variable, so this PR sets the CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS variable to ON, to ensure that the compilation with -DBUILD_SHARED_LIBS:BOOL=ON works fine on Windows.

Furthermore, the -Wno-unused-parameter is a GCC/Clang specific compilations option, so I moved it in the existing if for adding GCC/Clang specific compilations options.


This is an automatic backport of pull request #1400 done by Mergify.

@mergify mergify bot added the humble Relevant for humble and higher ROS versions label Jun 16, 2025
@urfeex urfeex added the bugfix label Jun 17, 2025
@urfeex urfeex merged commit 2e19549 into humble Jun 17, 2025
7 checks passed
@urfeex urfeex deleted the mergify/bp/humble/pr-1400 branch June 17, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix humble Relevant for humble and higher ROS versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants