[CMake] Analyze file dependencies in Visual Studio for project generatedby CMake

Martin Apel martin.apel at simpack.de
Wed Apr 22 06:21:02 EDT 2009


Hi all,

I am currently fighting with Visual Studio regenerating a
CMake-generated project on every build, although nothing has changed. I
am searching for a method how to debug the generated dependencies inside VS.
The project builds a DLL from Fortran files, which are generated by a
Perl script. The setup looks something like this:

ADD_CUSTOM_COMMAND(OUTPUT ${FortranSources}
                   COMMAND ${CMAKE_COMMAND} -E chdir
${CMAKE_CURRENT_BINARY_DIR} ${PERL_EXECUTABLE}
{CMAKE_SOURCE_DIR}/scripts/createFortAccessors.pl
                   DEPENDS
${CMAKE_SOURCE_DIR}/scripts/createFortAccessors.pl FortranModules.inp
FortranCommons.inp ${ModuleDefs} ${CommonDefs})
ADD_LIBRARY(FortranInterface SHARED ${FortranSources} FortranInterface.def)

Visual Studio regenerates the Fortran source files upon each build,
although none of the input files have changed. Any ideas how to find
out, why this happens, are very much appreciated.
The same project is generated correctly under Linux and even with a
nmake-based build.

Martin



____________
Virus checked by G DATA AntiVirus
Version: AVF 19.347 from 21.04.2009




More information about the CMake mailing list