diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-04 19:51:48 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-04 19:51:48 (GMT) |
commit | 525a2160a65a2c72d8506521cbd072995aa12a52 (patch) | |
tree | 9159b0b704ae04bb2d5a3d580b196fde5b9e61c3 /Modules | |
parent | 0dd2b6eb80a3fe288cf936e7bd899733231262aa (diff) | |
download | CMake-525a2160a65a2c72d8506521cbd072995aa12a52.zip CMake-525a2160a65a2c72d8506521cbd072995aa12a52.tar.gz CMake-525a2160a65a2c72d8506521cbd072995aa12a52.tar.bz2 |
FIX: fix for bug 1730
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/UseSWIG.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 0bed648..54ffdde 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -122,10 +122,9 @@ MACRO(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) ENDFOREACH(it) SET(swig_special_flags) + # default is c, so add c++ flag if it is c++ IF(swig_source_file_cplusplus) SET(swig_special_flags ${swig_special_flags} "-c++") - ELSE(swig_source_file_cplusplus) - SET(swig_special_flags ${swig_special_flags} "-c") ENDIF(swig_source_file_cplusplus) SET(swig_extra_flags) IF(SWIG_MODULE_${name}_EXTRA_FLAGS) |