aboutsummaryrefslogtreecommitdiff
path: root/project/cmake
diff options
context:
space:
mode:
authorFneufneu <mickael.maillot@gmail.com>2016-07-07 18:26:52 +0200
committerFneufneu <mickael.maillot@gmail.com>2016-07-09 17:54:58 +0200
commitf64713131f8ea32ea849649cfe1e0aea76ab56d0 (patch)
treecf1134a25131739c15f58b7c9143cf6b1845c0d3 /project/cmake
parent810895469a621c2eb25dbb2ef4aba75ecf067c8b (diff)
[cmake] also try to find swig3.0
On FreeBSD the binary are: swig2.0 or swig3.0 so try to find version 3.0 if the 2.0 is not there
Diffstat (limited to 'project/cmake')
-rw-r--r--project/cmake/modules/FindSWIG.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/project/cmake/modules/FindSWIG.cmake b/project/cmake/modules/FindSWIG.cmake
index 84c7a5163c..202b731676 100644
--- a/project/cmake/modules/FindSWIG.cmake
+++ b/project/cmake/modules/FindSWIG.cmake
@@ -1,5 +1,5 @@
if(NOT SWIG_EXECUTABLE)
- find_program(SWIG_EXECUTABLE NAMES swig2.0 swig PATH_SUFFIXES swig)
+ find_program(SWIG_EXECUTABLE NAMES swig3.0 swig2.0 swig PATH_SUFFIXES swig)
endif()
if(SWIG_EXECUTABLE)
execute_process(COMMAND ${SWIG_EXECUTABLE} -swiglib