From 525a2160a65a2c72d8506521cbd072995aa12a52 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 4 Apr 2005 15:51:48 -0400 Subject: FIX: fix for bug 1730 --- Modules/UseSWIG.cmake | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v0.12