mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 21:41:03 +00:00
FindSWIG: Search for swig.swg only on host (#13449)
Use NO_CMAKE_FIND_ROOT_PATH to ensure swig.swg can be found on the host even when cross-compiling.
This commit is contained in:
parent
75bfe4cbd0
commit
19b7a54d35
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user