Skip to content

Commit

Permalink
Do not ignore ${SWIG_DIR} when invoking ${SWIG_EXECUTABLE}
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Apr 28, 2024
1 parent 93ac24d commit b201379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/release/master.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Fixes

* Configuration files installed by the `yarp_configure_plugins_installation` CMake macro are now relocatable (https://github.com/robotology/yarp/issues/2445, ).
* Improved `ffmpeg` port monitor to allow using different couples of coders/decodes
* Fixed compilation of portmonitor carrier when a custom non-system swig is used

New Features
------------
Expand Down
2 changes: 1 addition & 1 deletion src/carriers/portmonitor_carrier/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (NOT SKIP_portmonitor)
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen/swigluarun.h"
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen/"
COMMAND "${SWIG_EXECUTABLE}" -c++ -lua -external-runtime "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen/swigluarun.h"
COMMAND "${CMAKE_COMMAND}" -E env "SWIG_LIB=${SWIG_DIR}" "${SWIG_EXECUTABLE}" -c++ -lua -external-runtime "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen/swigluarun.h"
COMMENT "Generating swig-lua runtime"
)
target_include_directories(yarp_portmonitor PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/lua/src_gen")
Expand Down

0 comments on commit b201379

Please sign in to comment.