From b99046be8149925ac06fbbbd5ed42ce304dd1112 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 30 Apr 2004 12:54:20 -0400 Subject: [PATCH] ENH: add another place to look for swig.exe --- Modules/FindSWIG.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})