View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000096CMakepublic2003-07-25 04:482004-04-16 08:01
ReporterPetr Ferschmann 
Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000096: Warning level in MSVC 7.0
DescriptionThere is variable that can be used for setting warning level (CMAKE_CXX_WARNING_LEVEL).

But default values of CMAKE_CXX_FLAGS contains /W3 (defined in Modules/Platform/Windows-cl.cmake). I think the /W3 option should not be defined in Windows.cl.cmake at all.

Now when I descrease warning level, there are both options (/W2 and /W3) and it prints "overriding /W2 with /W3". So CMAKE_CXX_WARNING_LEVEL is not usable at all.

I need to descrease it because we use exceptions and it prints that exceptions are not supported.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0000082)
Bill Hoffman (manager)
2003-08-07 09:31

This is a bit tricky to fix the flag CMAKE_CXX_WARNING_LEVEL is only used by the visual studio 7 ide generator. The /W3 is added to the cxx flags by the Platform/Windows-cl.cmake file that is used by nmake and visual stuido 6. What we really need is an abstraction of warnings in CMake. CMAKE_CXX_WARNING_LEVEL (1-10), and this gets mapped onto each compiler differently.

(0000897)
Bill Hoffman (manager)
2004-04-16 08:01

This has been fixed.CMAKE_CXX_WARNING_LEVEL now works for visual studio 7.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team