Skip to content

Conversation

@traversaro
Copy link
Contributor

The package compiles a library, but does not expose any symbol on Windows, so if the CMake project is compiled on on Windows, no library is actually generated.

On Linux and macOS, everything compiles 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 works fine on Windows.

Furthermore, the -Wpedantic -Werror are GCC/Clang specific compilations options, so I moved it in an if for adding GCC/Clang specific compilations options.

Copy link
Member

@urfeex urfeex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@urfeex urfeex merged commit 04997b8 into UniversalRobots:main Jun 16, 2025
3 of 10 checks passed
@traversaro traversaro deleted the patch-7 branch June 16, 2025 09:31
@urfeex
Copy link
Member

urfeex commented Jun 17, 2025

@Mergifyio backport humble

@Mergifyio backport jazzy

@mergify
Copy link

mergify bot commented Jun 17, 2025

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jun 17, 2025
(cherry picked from commit 04997b8)

# Conflicts:
#	ur_controllers/CMakeLists.txt
@urfeex
Copy link
Member

urfeex commented Jun 17, 2025

@Mergifyio backport jazzy

@mergify
Copy link

mergify bot commented Jun 17, 2025

backport jazzy

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jun 17, 2025
urfeex pushed a commit that referenced this pull request Jun 17, 2025
Co-authored-by: Silvio Traversaro <silvio@traversaro.it>
urfeex pushed a commit that referenced this pull request Jun 17, 2025
Co-authored-by: Silvio Traversaro <silvio@traversaro.it>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants