The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=12295 ====================================================================== Reported By: Ben Medina Assigned To: ====================================================================== Project: CMake Issue ID: 12295 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2011-06-21 18:11 EDT Last Modified: 2011-06-21 18:11 EDT ====================================================================== Summary: LINK_FLAGS_RELEASE has no effect on static libraries for MSVC generators Description: Setting the LINK_FLAGS_RELEASE target property does not effect the output from the MSVC generators for static libraries.
Steps to Reproduce: 1. Use CMake to generate project files for the attached project. I've tried the Visual Studio 2008 and 2010 generators. 2. Build the project in release mode. The following warning will be generated for the static library, but not the shared library: a.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance Additional Information: The cmake code attempts to add /LTCG to the LINK_FLAGS_RELEASE for both libraries. It does get added to the shared library, but not the static library. You can verify this in the Visual Studio GUI by going to project properties for the static library, and checking Configuration Properties>Librarian>General. The last entry is Link Time Code Generation, which is expected to be set to "Yes (/LTCG)". ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-06-21 18:11 Ben Medina New Issue 2011-06-21 18:11 Ben Medina File Added: link_test.zip ====================================================================== _______________________________________________ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers