summaryrefslogtreecommitdiffstats
path: root/Modules/FindSWIG.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-04-30 16:52:12 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-04-30 16:52:12 (GMT)
commit5fd1c7fd3c5d4166244cbec622beda9faae941ae (patch)
tree44fbe9612c8e2139f78a2b52f45741330531f460 /Modules/FindSWIG.cmake
parent920aef76e0979c44a5e7bc50de40b7d50329c8da (diff)
downloadCMake-5fd1c7fd3c5d4166244cbec622beda9faae941ae.zip
CMake-5fd1c7fd3c5d4166244cbec622beda9faae941ae.tar.gz
CMake-5fd1c7fd3c5d4166244cbec622beda9faae941ae.tar.bz2
ENH: try to find swig.exe in SWIG_DIR
Diffstat (limited to 'Modules/FindSWIG.cmake')
-rw-r--r--Modules/FindSWIG.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSWIG.cmake b/Modules/FindSWIG.cmake
index 6116b6c..5a6cedf 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 /usr/bin /usr/local/bin)
+ PATHS ${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})