summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-06-20 19:12:55 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-06-20 19:12:55 (GMT)
commit2ae5a43fa7efcd6fa61a9066c81fb2e776cda51b (patch)
tree14d419d9a5538468bd99889e46681d9809ac6389 /Modules
parent5c668b821fb3b6781fff129859f6209b9769e785 (diff)
parent03809b14429edb14ffbb4e83d2cda32e86555de1 (diff)
downloadCMake-2ae5a43fa7efcd6fa61a9066c81fb2e776cda51b.zip
CMake-2ae5a43fa7efcd6fa61a9066c81fb2e776cda51b.tar.gz
CMake-2ae5a43fa7efcd6fa61a9066c81fb2e776cda51b.tar.bz2
Merge topic 'FindSWIG-find_program-NAMES-issue-12280'
03809b1 FindSWIG: Use NAMES in find_program directives (#12280)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindSWIG.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSWIG.cmake b/Modules/FindSWIG.cmake
index 8c60bcb..2e34eb1 100644
--- a/Modules/FindSWIG.cmake
+++ b/Modules/FindSWIG.cmake
@@ -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