From 5fd1c7fd3c5d4166244cbec622beda9faae941ae Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 30 Apr 2004 12:52:12 -0400 Subject: [PATCH] ENH: try to find swig.exe in SWIG_DIR --- Modules/FindSWIG.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindSWIG.cmake b/Modules/FindSWIG.cmake index 6116b6c25..5a6cedfd8 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})