View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001324CMakepublic2004-11-03 18:462005-02-17 10:47
ReporterDaniel Gomez 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001324: MSVC7 generator does not output ExceptionHandling="FALSE"
DescriptionThe generator will properly recognize the /EHsc compiler flag, and translate that into an ExceptionHandling="TRUE" attribute in the resulting .vcproj file. If /EHsc is not given, however, then the ExceptionHandling attribute is not written out at all---and in its absence, MSVC assigns a default value of TRUE.

I have projects which I want built without C++ exception support, and have no way of generating suitable .vcproj files without postprocessing.

Suggested patch, which seems to do the trick:
------------------(cut here)------------------
Index: cmLocalVisualStudio7Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v
retrieving revision 1.66
diff -u -b -r1.66 cmLocalVisualStudio7Generator.cxx
--- cmLocalVisualStudio7Generator.cxx 27 Oct 2004 14:53:01 -0000 1.66
+++ cmLocalVisualStudio7Generator.cxx 3 Nov 2004 23:30:14 -0000
@@ -288,6 +288,7 @@
   // Then parse the command line flags specified in CMAKE_CXX_FLAGS and CMAKE_C_FLAGS
   // and overwrite or add new values to this map
   std::map<cmStdString, cmStdString> flagMap;
+ flagMap["ExceptionHandling"] = "FALSE";

   const char* mfcFlag = m_Makefile->GetDefinition("CMAKE_MFC_FLAG");
   if(!mfcFlag)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0002073)
Bill Hoffman (manager)
2005-02-17 10:47

fixed in cvs.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team