summaryrefslogtreecommitdiffstats
path: root/Modules/FindSWIG.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-25 13:37:47 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-25 13:37:47 (GMT)
commitadde0c6324fc7ac6f812f137b161e3a6f815108a (patch)
tree41482258d5abb44e9c372f91086e1cde95c694b7 /Modules/FindSWIG.cmake
parent7008754b0eeda3ccf1d6e4940853ec2c68600cba (diff)
parent19b7a54d351f41a9e92d46a9e13911a0b0b223bb (diff)
downloadCMake-adde0c6324fc7ac6f812f137b161e3a6f815108a.zip
CMake-adde0c6324fc7ac6f812f137b161e3a6f815108a.tar.gz
CMake-adde0c6324fc7ac6f812f137b161e3a6f815108a.tar.bz2
Merge topic 'FindSWIG-fix13449'
19b7a54 FindSWIG: Search for swig.swg only on host (#13449)
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 dbdb0a4..f27c990 100644
--- a/Modules/FindSWIG.cmake
+++ b/Modules/FindSWIG.cmake
@@ -54,7 +54,7 @@ if(SWIG_EXECUTABLE)
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})
+ find_path(SWIG_DIR swig.swg PATHS ${SWIG_swiglib_output} NO_CMAKE_FIND_ROOT_PATH)
if(SWIG_DIR)
set(SWIG_USE_FILE ${CMAKE_ROOT}/Modules/UseSWIG.cmake)
execute_process(COMMAND ${SWIG_EXECUTABLE} -version