diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-11 19:18:45 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-11 19:18:45 (GMT) |
commit | 575c34300cbb3578fd48834d5afdabd1b90454dd (patch) | |
tree | 6965655ecf00ff211356251987b94129c0ed5d8e /Modules/UseSWIG.cmake | |
parent | 712f4b3d01c3c7f4ee30d54646c278ec21de841c (diff) | |
download | CMake-575c34300cbb3578fd48834d5afdabd1b90454dd.zip CMake-575c34300cbb3578fd48834d5afdabd1b90454dd.tar.gz CMake-575c34300cbb3578fd48834d5afdabd1b90454dd.tar.bz2 |
FIX: fix bug 1303
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r-- | Modules/UseSWIG.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 0b67761..0bed648 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -100,8 +100,10 @@ MACRO(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) "${swig_source_file_name_we}") SET(swig_generated_file_fullname "${swig_generated_file_fullname}/${swig_source_file_name_we}") + # add the language into the name of the file (i.e. TCL_wrap) + # this allows for the same .i file to be wrapped into different languages SET(swig_generated_file_fullname - "${swig_generated_file_fullname}_wrap") + "${swig_generated_file_fullname}${SWIG_MODULE_${name}_LANGUAGE}_wrap") IF(swig_source_file_cplusplus) SET(swig_generated_file_fullname |