MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0010638 | CMake | CMake | public | 2010-04-29 02:00 | 2011-06-17 18:10 |
Reporter | Alexander | ||||
Assigned To | David Cole | ||||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake-2-8 | ||||
Target Version | CMake 2.8.5 | Fixed in Version | CMake 2.8.5 | ||
Summary | 0010638: Enable code analysis in Visual Studio 9 (2008) | ||||
Description | There is no way to enable code analysis for C/C++ on Visual Studio 2008 build. Microsoft document "/analize" flag on cl.exe, but it dosn't work. Microsoft use "EnablePREfast" boolean attribute on VisualStudioProject/Configurations/Configuration/Tool[@Name='VCCLCompilerTool'] in .vcproj When I add two flags to cmVS8ExtraFlagTable (), the problem was solved and cmake command: set( CMAKE_C_FLAGS "-analize" ) turned code analysis ON, and command set( CMAKE_C_FLAGS "-analize-" ) turned code analysis OFF. When cmake project dosn't contain nether "-analize" nor "-analize-" flags vcproj dosn't contain EnablePREfast attribute. | ||||
Steps To Reproduce | |||||
Additional Information | static cmVS7FlagTable cmVS8ExtraFlagTable[] = ... {"EnablePREfast", "analize", "enable code analysis for c/c++ on build", "TRUE", 0}, {"EnablePREfast", "analize-", "disable code analysis for c/c++ on build", "FALSE", 0}, ... | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2010-04-29 02:00 | Alexander | New Issue | |||
2011-01-17 15:39 | David Cole | Assigned To | => David Cole | ||
2011-01-17 15:39 | David Cole | Status | new => assigned | ||
2011-02-01 13:57 | David Cole | Note Added: 0025200 | |||
2011-02-01 13:57 | David Cole | Status | assigned => resolved | ||
2011-02-01 13:57 | David Cole | Resolution | open => fixed | ||
2011-02-16 11:42 | David Cole | Target Version | => CMake 2.8.5 | ||
2011-06-06 18:25 | David Cole | Status | resolved => closed | ||
2011-06-06 18:25 | David Cole | Note Added: 0026715 | |||
2011-06-17 18:10 | David Cole | Fixed in Version | => CMake 2.8.5 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|