MantisBT - CMake
View Issue Details
0014708CMakeCMakepublic2014-01-18 07:212014-06-02 08:38
Amelek 
 
normalfeaturealways
closedwon't fix 
Windows764
CMake 2.8.12.1 
 
0014708: Release configuration has LTCG disabled
I'm CMake user and I noticed that few project that use CMake (including Ogre and CEGUI) do not have Link time code generation enabled in Release configuration. This naturally renders such solutions useless performance-wise and fixing this manually is tedious.

It seem that bug is in CMake as there is no code in the CMakeList.txt that would explicitly disable this behavior.

On network there seem to be some workarounds (put flag manually in some magic variable), but this option should be enabled by default. There is no penalty for having it and resulting code is much faster in most cases.
Configure Ogre, notice that LTCG is disabled in Release configuration
LTCG should be enabled in Release configuration
No tags attached.
Issue History
2014-01-18 07:21AmelekNew Issue
2014-01-20 09:03Brad KingNote Added: 0034965
2014-01-20 09:03Brad KingStatusnew => resolved
2014-01-20 09:03Brad KingResolutionopen => won't fix
2014-06-02 08:38Robert MaynardNote Added: 0036087
2014-06-02 08:38Robert MaynardStatusresolved => closed

Notes
(0034965)
Brad King   
2014-01-20 09:03   
The proper solution for projects that want particular optimizations is to add code to their CMakeLists.txt files to add the flags. The upstream-default flags are intentionally minimal.
(0036087)
Robert Maynard   
2014-06-02 08:38   
Closing resolved issues that have not been updated in more than 4 months.