[CMake] Attempting to use /EHa with Visual Studio .NET 2003 -
no luck yet
Brad King
brad.king at kitware.com
Fri Nov 16 11:07:42 EST 2007
Gerhard Grimm wrote:
> Having searched for and read previous posts regarding this issue (June 2006), it looks like ExceptionHandling="2" is only understood by Visual Studio 2005, but not by .NET 2003.
Fixed in CVS CMake:
/cvsroot/CMake/CMake/Source/cmGlobalVisualStudio7Generator.cxx,v <--
cmGlobalVisualStudio7Generator.cxx
new revision: 1.93; previous revision: 1.92
/cvsroot/CMake/CMake/Source/cmGlobalVisualStudio8Generator.cxx,v <--
cmGlobalVisualStudio8Generator.cxx
new revision: 1.27; previous revision: 1.26
/cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v <--
cmLocalVisualStudio7Generator.cxx
new revision: 1.206; previous revision: 1.205
The patch is below. You may be able to manually make these changes in
your CMake version. I'll see if it can be backported to the 2.4 branch.
-Brad
Index: cmGlobalVisualStudio7Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalVisualStudio7Generator.cxx,v
retrieving revision 1.92
diff -r1.92 cmGlobalVisualStudio7Generator.cxx
815a816,823
>
> // Exception handling mode. If no entries match, it will be FALSE.
> {"ExceptionHandling", "GX", "enable c++ exceptions", "TRUE", 0},
> {"ExceptionHandling", "EHsc", "enable c++ exceptions", "TRUE", 0},
> // The EHa option does not have an IDE setting. Let it go to false,
> // and have EHa passed on the command line by leaving out the table
> // entry.
>
Index: cmGlobalVisualStudio8Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalVisualStudio8Generator.cxx,v
retrieving revision 1.26
diff -r1.26 cmGlobalVisualStudio8Generator.cxx
288a289,294
>
> // Exception handling mode. If no entries match, it will be FALSE.
> {"ExceptionHandling", "GX", "enable c++ exceptions", "1", 0},
> {"ExceptionHandling", "EHsc", "enable c++ exceptions", "1", 0},
> {"ExceptionHandling", "EHa", "enable SEH exceptions", "2", 0},
>
Index: cmLocalVisualStudio7Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v
retrieving revision 1.205
diff -r1.205 cmLocalVisualStudio7Generator.cxx
345,347d344
< {"ExceptionHandling", "EHsc", "enable c++ exceptions", "TRUE", 0},
< {"ExceptionHandling", "EHa", "enable c++ exceptions", "2", 0},
< {"ExceptionHandling", "GX", "enable c++ exceptions", "TRUE", 0},
More information about the CMake
mailing list