Skip to content

Commit

Permalink
Hack CMake's "find" mechanism
Browse files Browse the repository at this point in the history
There is a `find_program(NAMES)` command involved which favors a
`swig4.0` command already present in /usr/bin. Using the `SWIG_ROOT`
env var is not enough to override it.
  • Loading branch information
PeterBowman committed Oct 3, 2024
1 parent 19054b0 commit fe9cf8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
cmake -S .deps/swig -B .deps/swig/build $CMAKE_CCACHE_LAUNCHER
cmake --build .deps/swig/build
sudo cmake --install .deps/swig/build
echo "SWIG_ROOT=/usr/local/bin" >> $GITHUB_ENV
sudo ln -s /usr/local/bin/swig /usr/local/bin/swig4.0 # shadows /usr/bin/swig4.0
- name: Configure kinematics-dynamics
run: cmake -S . -B ./build $CMAKE_CCACHE_LAUNCHER -DCREATE_BINDINGS_PYTHON=ON -DENABLE_examples=ON
Expand Down

0 comments on commit fe9cf8f

Please sign in to comment.