summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJulien Schueller <schueller@phimeca.com>2013-12-01 00:20:46 (GMT)
committerJulien Schueller <schueller@phimeca.com>2013-12-01 00:20:46 (GMT)
commit5d3b0bb501aec34e452ddd1b140b90699d929621 (patch)
treefd1da36f7870a8f2805d3f4be0c6998d2334ba97 /Modules
parentf0b3502a6586478ef624419e4007e5f5652da2f0 (diff)
downloadCMake-5d3b0bb501aec34e452ddd1b140b90699d929621.zip
CMake-5d3b0bb501aec34e452ddd1b140b90699d929621.tar.gz
CMake-5d3b0bb501aec34e452ddd1b140b90699d929621.tar.bz2
FindSWIG: allow to provide SWIG_DIR (#3498)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindSWIG.cmake2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/FindSWIG.cmake b/Modules/FindSWIG.cmake
index 55f4c0d..8bd4048 100644
--- a/Modules/FindSWIG.cmake
+++ b/Modules/FindSWIG.cmake
@@ -52,8 +52,6 @@ if(SWIG_EXECUTABLE)
endif()
else()
string(REGEX REPLACE "[\n\r]+" ";" SWIG_swiglib_output ${SWIG_swiglib_output})
- # force the path to be computed each time in case SWIG_EXECUTABLE has changed.
- set(SWIG_DIR SWIG_DIR-NOTFOUND)
find_path(SWIG_DIR swig.swg PATHS ${SWIG_swiglib_output} NO_CMAKE_FIND_ROOT_PATH)
if(SWIG_DIR)
set(SWIG_USE_FILE ${CMAKE_CURRENT_LIST_DIR}/UseSWIG.cmake)