Allow SWIG 4.0.

No other changes are necessary.

(Cherry-picked from 3bba96baa2)
This commit is contained in:
Matthias Urlichs 2020-05-04 13:16:07 +02:00 committed by Ian McInerney
parent 78a7dd3269
commit de4c6c6fab
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
find_program(SWIG_EXECUTABLE NAMES swig3.0 swig2.0 swig)
find_program(SWIG_EXECUTABLE NAMES swig4.0 swig3.0 swig2.0 swig)
if(SWIG_EXECUTABLE)
execute_process(COMMAND ${SWIG_EXECUTABLE} -swiglib