MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0004089 | CMake | CMake | public | 2006-11-29 08:03 | 2016-06-10 14:30 |
| Reporter | Joseph | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0004089: Visual Studio generator doesn't handle custom optimizations | ||||
| Description | I am trying to compile one of my targets with the following optimization flags: "/Og /Oi /Ot /Oy /Ob2 /Gs /GF" That's equivalent to "/O2 /Gy-", but I can't use /Gy- because it's only supported in VS2005 and because cmake doesn't parse it correctly. Now it turns out I can't use that long sequence either, because the following happens: 1. As none of /Od, /O1, /O2, /Ox is present, the Optimization=x attribute is not put to a .vcproj file. 2. Visual Studio doesn't default to "Custom" optimization, but rather to "Maximize Speed", which causes /O2 to be used instead of my custom flags. A patch is attached. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/755/cmLocalVisualStudio7Generator.diff | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-08-13 10:44 | Brad King | Status | assigned => backlog | ||
| 2012-08-13 10:44 | Brad King | Note Added: 0030563 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041334 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||