Skip to content

Add swig executable as generation dependency in UseSWIG.cmake

Andrei Lebedev requested to merge lebdron/cmake:swig-source-dependency into master

SWIG generation command was not detecting swig binary as a dependency since the following commit: 8ab4e383

This creates an issue when SWIG is downloaded with ExternalProject_Add as it is done here, because it will run generation command before the executable is downloaded and built due to missing dependency.

This pull request adds a binary dependency for generation command. Not sure if it is correct place to add dependency, because there is already a swig_dependencies variable, which can be modified with SWIG_EXECUTABLE, so comment is required.

This issue affects version 3.11, so pull request should be also applicable to release branch.

Merge request reports