View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001324 | CMake | public | 2004-11-03 18:46 | 2005-02-17 10:47 | |||||
Reporter | Daniel Gomez | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001324: MSVC7 generator does not output ExceptionHandling="FALSE" | ||||||||
Description | The 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) | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0002073) Bill Hoffman (manager) 2005-02-17 10:47 |
fixed in cvs. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |