[cmake-developers] [CMake 0014708]: Release configuration has LTCG disabled

Mantis Bug Tracker mantis at public.kitware.com
Sat Jan 18 07:21:44 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14708 
====================================================================== 
Reported By:                Amelek
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14708
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-01-18 07:21 EST
Last Modified:              2014-01-18 07:21 EST
====================================================================== 
Summary:                    Release configuration has LTCG disabled
Description: 
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.

Steps to Reproduce: 
Configure Ogre, notice that LTCG is disabled in Release configuration

Additional Information: 
LTCG should be enabled in Release configuration
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-01-18 07:21 Amelek         New Issue                                    
======================================================================



More information about the cmake-developers mailing list