AW: [CMake] Attempting to use /EHa with Visual Studio .NET 2003

Gerhard Grimm ggrimm at detec.de
Mon Nov 19 04:35:13 EST 2007


Hi Brad,

I checked today's CVS version - /EHa works fine now :-)
Thank you for your effort!
For the other problem with the CVS version I have outlined in
http://www.cmake.org/pipermail/cmake/2007-November/017762.html
I'm using a workaround for the time being...

Best regards, Gerhard

-----Ursprüngliche Nachricht-----
Von: Brad King [mailto:brad.king at kitware.com]
Gesendet: Freitag, 16. November 2007 17:08
An: Gerhard Grimm
Cc: cmake at cmake.org
Betreff: Re: [CMake] Attempting to use /EHa with Visual Studio .NET 2003
- no luck yet


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