diff options
author | Brad King <brad.king@kitware.com> | 2013-11-25 13:37:53 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-11-25 13:37:53 (GMT) |
commit | f1d5d889111f494b746aa0f0d5bba42cf1b5e61c (patch) | |
tree | 1d64403b9dc19acf41fd80f9cd69139137409e86 /Modules/FindSWIG.cmake | |
parent | adde0c6324fc7ac6f812f137b161e3a6f815108a (diff) | |
parent | 8c127c9e33f051f4bf7389c3627a0978135e99fe (diff) | |
download | CMake-f1d5d889111f494b746aa0f0d5bba42cf1b5e61c.zip CMake-f1d5d889111f494b746aa0f0d5bba42cf1b5e61c.tar.gz CMake-f1d5d889111f494b746aa0f0d5bba42cf1b5e61c.tar.bz2 |
Merge topic 'FindSWIG-fix13771'
8c127c9 FindSWIG: Use CMAKE_CURRENT_LIST_DIR instead of CMAKE_ROOT (#13771)
Diffstat (limited to 'Modules/FindSWIG.cmake')
-rw-r--r-- | Modules/FindSWIG.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSWIG.cmake b/Modules/FindSWIG.cmake index f27c990..55f4c0d 100644 --- a/Modules/FindSWIG.cmake +++ b/Modules/FindSWIG.cmake @@ -56,7 +56,7 @@ if(SWIG_EXECUTABLE) 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_ROOT}/Modules/UseSWIG.cmake) + set(SWIG_USE_FILE ${CMAKE_CURRENT_LIST_DIR}/UseSWIG.cmake) execute_process(COMMAND ${SWIG_EXECUTABLE} -version OUTPUT_VARIABLE SWIG_version_output ERROR_VARIABLE SWIG_version_output |