Browse Source

Merge topic 'FindSWIG-find_program-NAMES-issue-12280'

03809b1 FindSWIG: Use NAMES in find_program directives (#12280)
Brad King 14 years ago
parent
commit
2ae5a43fa7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindSWIG.cmake

+ 1 - 1
Modules/FindSWIG.cmake

@@ -27,7 +27,7 @@
 # (To distribute this file outside of CMake, substitute the full
 # (To distribute this file outside of CMake, substitute the full
 #  License text for the above reference.)
 #  License text for the above reference.)
 
 
-FIND_PROGRAM(SWIG_EXECUTABLE swig2.0 swig)
+FIND_PROGRAM(SWIG_EXECUTABLE NAMES swig2.0 swig)
 
 
 IF(SWIG_EXECUTABLE)
 IF(SWIG_EXECUTABLE)
   EXECUTE_PROCESS(COMMAND ${SWIG_EXECUTABLE} -swiglib
   EXECUTE_PROCESS(COMMAND ${SWIG_EXECUTABLE} -swiglib