MantisBT - CMake
View Issue Details
0010094CMakeCMakepublic2010-01-05 11:432014-02-10 10:44
Matthäus G. Chajdas 
Patrick R. Gansterer 
normalfeaturealways
closedfixed 
CMake 2.8.10 
CMake 2.8.12CMake 2.8.12 
0010094: Add support for CMAKE_STATIC_LINKER_FLAGS variable to set librarian flags
Even though I'm setting CMAKE_STATIC_LINKER_FLAGS_RELEASE to "/LTGC", a static library gets compiled only with "/OUT:... /NOLOGO" and "/LTGC" is not appended. This results in "MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance"
I can't test it right now, but I remember that this also used to happen with VS 2008.
No tags attached.
related to 0010768closed Brad King Request STATIC_LIBRARY_FLAGS_<build type> variable for use by MSVC 
Issue History
2010-01-05 11:43Matthäus G. ChajdasNew Issue
2010-01-05 15:03Bill HoffmanNote Added: 0019036
2010-01-05 15:03Bill HoffmanStatusnew => assigned
2010-01-05 15:03Bill HoffmanAssigned To => Bill Hoffman
2010-01-06 04:07Matthäus G. ChajdasNote Added: 0019041
2012-12-07 10:44Brad KingRelationship addedrelated to 0010768
2012-12-07 10:46Brad KingNote Added: 0031850
2012-12-07 10:46Brad KingAssigned ToBill Hoffman =>
2012-12-07 10:46Brad KingSeverityminor => feature
2012-12-07 10:46Brad KingStatusassigned => backlog
2012-12-07 10:46Brad KingProduct VersionCMake-2-8 => CMake 2.8.10
2012-12-07 10:46Brad KingSummaryCMAKE_STATIC_LINKER_FLAGS ignored for VS 2010 => Add support for CMAKE_STATIC_LINKER_FLAGS variable to set librarian flags
2013-04-07 12:11Patrick R. GanstererNote Added: 0032774
2013-04-08 10:27Brad KingNote Added: 0032777
2013-04-08 10:42Brad KingAssigned To => Patrick R. Gansterer
2013-04-08 10:42Brad KingStatusbacklog => assigned
2013-08-01 03:18Patrick R. GanstererNote Added: 0033642
2013-08-01 03:19Patrick R. GanstererStatusassigned => resolved
2013-08-01 03:19Patrick R. GanstererResolutionopen => fixed
2013-08-01 03:19Patrick R. GanstererFixed in Version => CMake 2.8.12
2013-08-01 03:19Patrick R. GanstererTarget Version => CMake 2.8.12
2014-02-10 10:44Robert MaynardNote Added: 0035066
2014-02-10 10:44Robert MaynardStatusresolved => closed

Notes
(0019036)
Bill Hoffman   
2010-01-05 15:03   
There is no CMAKE_STATIC_LINKER_FLAGS variable in CMake for any platform....
(0019041)
Matthäus G. Chajdas   
2010-01-06 04:07   
Uh, ok, sorry then. Well, it would be good if CMAKE_STATIC_LINKER_FLAGS_<CONFIGURATION> would be supported :)
(0031850)
Brad King   
2012-12-07 10:46   
Moving to backlog awaiting a volunteer with time to address this. Discussion with one has started on the developer list here:

 http://www.cmake.org/pipermail/cmake-developers/2012-December/005900.html [^]
(0032774)
Patrick R. Gansterer   
2013-04-07 12:11   
Implementation at:
https://github.com/Kitware/CMake/pull/40 [^]
(0032777)
Brad King   
2013-04-08 10:27   
Discussion mentioned in 0010094:0031850 last ended here:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/5559/focus=5623 [^]

with a review of a proposed implementation.
(0033642)
Patrick R. Gansterer   
2013-08-01 03:18   
Merged into maser:
http://cmake.org/gitweb?p=cmake.git;a=commit;h=e3b6ab92dbb51945b81896f2d2a53f31ba63ae1a [^]
(0035066)
Robert Maynard   
2014-02-10 10:44   
Closing resolved issues that have not been updated in more than 4 months.