Merge topic 'FindSWIG-fix13449'

19b7a54 FindSWIG: Search for swig.swg only on host (#13449)
This commit is contained in:
Brad King 2013-11-25 08:37:47 -05:00 committed by CMake Topic Stage
commit adde0c6324
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ if(SWIG_EXECUTABLE)
string(REGEX REPLACE "[\n\r]+" ";" SWIG_swiglib_output ${SWIG_swiglib_output}) 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. # force the path to be computed each time in case SWIG_EXECUTABLE has changed.
set(SWIG_DIR SWIG_DIR-NOTFOUND) 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) if(SWIG_DIR)
set(SWIG_USE_FILE ${CMAKE_ROOT}/Modules/UseSWIG.cmake) set(SWIG_USE_FILE ${CMAKE_ROOT}/Modules/UseSWIG.cmake)
execute_process(COMMAND ${SWIG_EXECUTABLE} -version execute_process(COMMAND ${SWIG_EXECUTABLE} -version