[CMake] vfproj and OBJECT library relinking

Petr Kmoch petr.kmoch at gmail.com
Mon Sep 10 08:18:18 EDT 2012


Hi all,

I am using cmake on Windows to generate a vfproj for a Fortran DLL.
This DLL links some object files written in C, using
add_library(OBJECT). For some reason, the library is always considered
out of date, i.e. with every "Build solution" command (or just "Build"
on its project), it relinks. If I do not include the OBJECT library, I
do not get this behaviour.

Any idea how to stop this constant re-linking? Has anyone else had the
same experience?

Thanks in advance.

Petr


More information about the CMake mailing list