mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03:00
FindSWIG: Use NAMES in find_program directives (#12280)
Without this, regular swig (not 2.0) executable is not found
automatically.
Commit 55b7c87e (Add support for new swig 2.0 application, 2011-03-28)
added support for finding swig 2.0 at the (accidental) expense of not
finding 1.x. Fix this regression.
This commit is contained in:
1 parent
55b7c87ef2
commit
03809b1442
1 file changed
+1
-1
@@ -27,7 +27,7 @@
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
FIND_PROGRAM(SWIG_EXECUTABLE swig2.0 swig)
|
||||
FIND_PROGRAM(SWIG_EXECUTABLE NAMES swig2.0 swig)
|
||||
|
||||
IF(SWIG_EXECUTABLE)
|
||||
EXECUTE_PROCESS(COMMAND ${SWIG_EXECUTABLE} -swiglib
|
||||
|
||||
Reference in new issue
Block a user