Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation of downstream bindings that include yarp.i #3148

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Nov 13, 2024

In #3146 there was a regression, as a new file swig_python_windows_preable.i was included in the yarp.i and it was generated by CMake in its binary directory. However, that file is not supposed to be included (and it is not even availble in the include path) when a downstream project (like icub-main) includes the file in its own .i swig binding file.

This PR fixes the issue by only including the file when yarp.i is used to generate the yarp bindings, and not when the yarp.i is included in a downstream project, by checking if the SWIG_GENERATING_YARP_BINDINGS preprocessor macro (that is only defined in the CMake build of YARP bindings) is defined.

Fix robotology/icub-main#992 .

Copy link

update-docs bot commented Nov 13, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update the release notes by adding a file in doc/release/<target_branch>, based on your changes.

@pattacini
Copy link
Member

Hi @randaz81

Once merged, we would need the tag 3.10.1 to address robotology/icub-main#992.

Copy link

sonarcloud bot commented Nov 13, 2024

@randaz81 randaz81 merged commit 383716c into robotology:yarp-3.10 Nov 14, 2024
45 of 50 checks passed
@randaz81 randaz81 added the Component: Bindings swig, python, java, ruby, perl, octave, matlab, lua, csharp, tcl label Nov 14, 2024
@randaz81 randaz81 added this to the YARP 3.10.1 milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Bindings swig, python, java, ruby, perl, octave, matlab, lua, csharp, tcl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants