[CMake] ExceptionHandling in VC8

William A. Hoffman billlist at nycap.rr.com
Fri Jun 30 14:05:51 EDT 2006


At 01:31 PM 6/30/2006, Brad King wrote:
>Laurentiu Nicolae wrote:
>>Hello CMake users,
>>I have noticed that the ExceptionHandling flag is not fully handled for
>>VC8 projects. Namely, in VC7 this option could only be set to TRUE or
>>FALSE. In VC8, we have the following options:
>>Enable C++ exceptions :
>>No -  ExceptionHandling="0" Yes (/EHsc) - ExceptionHandling="1"
>>Yes with SEH Exceptions (/EHa) -  ExceptionHandling="2"
>>The /EHa option is not handled by the generator and ends up in the
>>AdditionalOptions line. This results for us in a warning (/EHsc replaced
>>with /EHa) for every file we compile in our projects. It would be nice
>>to have this option fully supported by CMake, especially since VC8 seems
>>to become  the new IDE of choice for Windows C++ development.
>
>There is a table in the generator used to map command line options to GUI settings in the generated project files.  The /EHa option is missing from this table.  You can submit a bug report here:
>
>http://www.cmake.org/Bug

Don't bother, I just commited a fix.
Checking for path: /cvsroot/CMake/CMake/Source
Unrestricted user: hoffman
/cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v  <--  cmLocalVis
ualStudio7Generator.cxx
new revision: 1.139; previous revision: 1.138

Please try cvs cmake if you get a chance.

-Bill



More information about the CMake mailing list