diff options
author | Tuukka Pasanen <pasanen.tuukka@gmail.com> | 2015-04-15 15:37:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-04-15 15:39:44 (GMT) |
commit | dd7e31bc15471b5c3ea31fcbe2002650780e78b6 (patch) | |
tree | fb4b04fa843d7cc32c6c4ec22d0f96a5ff7dddc6 /Modules/UseSWIG.cmake | |
parent | cdc53b62c20605467334ecb80c474533e04ff26c (diff) | |
download | CMake-dd7e31bc15471b5c3ea31fcbe2002650780e78b6.zip CMake-dd7e31bc15471b5c3ea31fcbe2002650780e78b6.tar.gz CMake-dd7e31bc15471b5c3ea31fcbe2002650780e78b6.tar.bz2 |
UseSWIG: Fix module name detection with relative source file (#15508)
When SWIG_GET_EXTRA_OUTPUT_FILES checks to see if a source file exists
for use in reading the module name, it must pass an absolute path to
the if(EXISTS) command. Teach SWIG_ADD_SOURCE_TO_MODULE to give it
the absolute path it already knows.
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r-- | Modules/UseSWIG.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 7423418..1862876 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -156,7 +156,7 @@ macro(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) SWIG_GET_EXTRA_OUTPUT_FILES(${SWIG_MODULE_${name}_LANGUAGE} swig_extra_generated_files "${swig_outdir}" - "${infile}") + "${swig_source_file_fullname}") set(swig_generated_file_fullname "${swig_outdir}/${swig_source_file_name_we}") # add the language into the name of the file (i.e. TCL_wrap) |