Skip to content

Commit

Permalink
Merge pull request #3163 from robotology/swig_421_fix
Browse files Browse the repository at this point in the history
fix for c# with swig version 4.2.1
  • Loading branch information
randaz81 authored Jan 21, 2025
2 parents e5e3fa3 + d4b13b5 commit 9bcb705
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,7 @@ jobs:
set(_cmake_extra_options ${{ matrix.config.cmake_extra_options }})
endif()
#SWIGFIX temporary fix for swig 4.2.1. The following lines should be removed.
set(_swig_extra_options)
if(NOT "${{ matrix.config.swig_extra_options }}" STREQUAL "")
set(_swig_extra_options ${{ matrix.config.swig_extra_options }})
Expand Down Expand Up @@ -1592,6 +1593,12 @@ jobs:
-D CMAKE_CXX_COMPILER_LAUNCHER=${_ccache_cmd})
endif()
#SWIGFIX temporary fix for swig 4.2.1. The following lines should be removed.
set(_swig_extra_options)
if(NOT "${{ matrix.config.swig_extra_options }}" STREQUAL "")
set(_swig_extra_options ${{ matrix.config.swig_extra_options }})
endif()
execute_process_x(
COMMAND ${CMAKE_COMMAND}
-S bindings
Expand Down Expand Up @@ -1669,6 +1676,12 @@ jobs:
-D CMAKE_CXX_COMPILER_LAUNCHER=${_ccache_cmd})
endif()
#SWIGFIX temporary fix for swig 4.2.1. The following lines should be removed.
set(_swig_extra_options)
if(NOT "${{ matrix.config.swig_extra_options }}" STREQUAL "")
set(_swig_extra_options ${{ matrix.config.swig_extra_options }})
endif()
execute_process_x(
COMMAND ${CMAKE_COMMAND}
-S bindings
Expand Down
2 changes: 2 additions & 0 deletions bindings/yarp.i
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,11 @@ MAKE_COMMS(Bottle)
%include "matlab/vectors_fromTo_matlab.i"
#endif

#if SWIG_VERSION < 0x040201
#if defined(SWIGCSHARP)
SWIG_STD_VECTOR_SPECIALIZE_MINIMUM(Pid,yarp::dev::Pid)
#endif
#endif
%template(PidVector) std::vector<yarp::dev::Pid>;

//////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 9bcb705

Please sign in to comment.