[cmake-developers] [CMake 0014777]: OBJECT libraries cause Fortran to relink each time

Mantis Bug Tracker mantis at public.kitware.com
Thu Feb 27 05:55:11 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14777 
====================================================================== 
Reported By:                Petr Kmoch
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14777
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-02-27 11:55 CET
Last Modified:              2014-02-27 11:55 CET
====================================================================== 
Summary:                    OBJECT libraries cause Fortran to relink each time
Description: 
When using the Visual Studio 10 generator and the solution includes a Fortran
executable using objects from a C[XX] OBJECT library, the executable will relink
each time 'Build solution' is run (or the executable's project is built).

It ceases to happen when the object files are manually removed from the project
as sources and instead added as additional linker dependencies. CMake should
probably take this approach when generating a vfproj.

I believe the same was happening for me in VS 2005, but I no longer have that on
hand for testing. Neither do I have a chance to test this on newer Visual
Studios.

Using "Intel(R) Visual Fortran Compiler XE 13.0.1.119"

Steps to Reproduce: 
Expand the attached testcase and run

> cmake -G "Visual Studio 10"

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-02-27 11:55 Petr Kmoch     New Issue                                    
2014-02-27 11:55 Petr Kmoch     File Added: fortran_object_library.zip          
         
======================================================================



More information about the cmake-developers mailing list