MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0014009 | CMake | CMake | public | 2013-03-13 11:25 | 2016-06-10 14:31 | |||||
Reporter | Braden McDaniel | |||||||||
Assigned To | Kitware Robot | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | moved | |||||||
Platform | x86 | OS | Windows | OS Version | XP | |||||
Product Version | CMake 2.8.10.2 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0014009: /LTCG option does not cause LinkTimeCodeGeneration to be set in project file | |||||||||
Description | Adding the /LTCG linker option to LINK_FLAGS or STATIC_LIBRARY_FLAGS should cause LinkTimeCodeGeneration to be set in the project file. For instance: <Tool Name="VCLinkerTool" ... LinkTimeCodeGeneration="1" /> This flag has the following forms that correspond to values 1-4 for the LinkTimeCodeGeneration attribute: Option XML Attribute Value --------------------------------------- /LTCG 1 /LTCG:PGINSTRUMENT 2 /LTCG:PGOPTIMIZE 3 /LTCG:PGUPDATE 4 See: http://msdn.microsoft.com/en-us/library/xbf3tbeh.aspx [^] | |||||||||
Steps To Reproduce | Add /LTCG to the linker (or librarian) using: foreach(CONFIG _RELEASE _MINSIZEREL _RELWITHDEBINFO) set_property(TARGET foo APPEND PROPERTY LINK_FLAGS${CONFIG} "/LTCG") endforeach() foreach(CONFIG _RELEASE _MINSIZEREL _RELWITHDEBINFO) set_property(TARGET bar APPEND PROPERTY STATIC_LIBRARY_FLAGS${CONFIG} "/LTCG") endforeach() Generate a Visual Studio project file. | |||||||||
Additional Information | I'm observing this on Visual Studio 2008. This bug is similar to bug 0010263; though that bug dealt with the compiler option and this one is about the related linker option. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2013-03-13 11:25 | Braden McDaniel | New Issue | ||||||||
2013-03-13 11:35 | Brad King | Relationship added | related to 0010263 | |||||||
2013-03-13 11:39 | Brad King | Note Added: 0032601 | ||||||||
2016-06-10 14:28 | Kitware Robot | Note Added: 0042247 | ||||||||
2016-06-10 14:28 | Kitware Robot | Status | new => resolved | |||||||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | |||||||
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | |||||||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|