summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-04-30 12:54:20 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2004-04-30 12:54:20 -0400
commitb99046be8149925ac06fbbbd5ed42ce304dd1112 (patch)
treefd38b8a4a5b81ad197c9950c01bb372ed25bf082 /Modules
parent5fd1c7fd3c5d4166244cbec622beda9faae941ae (diff)
downloadcmake-b99046be8149925ac06fbbbd5ed42ce304dd1112.tar.gz
ENH: add another place to look for swig.exe
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 5a6cedfd8b..ee26c3675d 100644
--- a/Modules/FindSWIG.cmake
+++ b/Modules/FindSWIG.cmake
@@ -17,7 +17,7 @@ IF(EXISTS ${SWIG_DIR})
ELSE(EXISTS ${SWIG_DIR}/SWIGConfig.cmake)
FIND_PROGRAM(SWIG_EXECUTABLE
NAMES swig-1.3 swig
- PATHS ${SWIG_DIR} /usr/bin /usr/local/bin )
+ PATHS ${SWIG_DIR} ${SWIG_DIR}/.. /usr/bin /usr/local/bin )
SET(SWIG_USE_FILE ${CMAKE_ROOT}/Modules/UseSWIG.cmake)
ENDIF(EXISTS ${SWIG_DIR}/SWIGConfig.cmake)
ENDIF(EXISTS ${SWIG_DIR})