[CMake] Using Eclipse CDT, CMake resets Eclipse project configuration frequently
Eric Noulard
eric.noulard at gmail.com
Fri Jan 30 08:54:55 EST 2009
2009/1/30 Jonatan Bijl <jonatan.bijl at tba.nl>:
>
> I have now set up the tree so that the executables can be run
> immediately from where they are created. I use configure_file to copy
> the files. The problem is now, that every time I do a re-configure, the
> files (including a dll that is very big) are copied. Is there a way of
> making sure the files are copied *only* when they are renewed?
I thought configure_file would only copy the file if it has changed
[
not that you should use COPYONLY
configure_file(InputFile OutputFile COPYONLY)
]
however if it is not the case you may replace your configure_file with
EXECUTE_PROCESS(${CMAKE_COMMAND} -E copy_if_different InputFile OutputFile)
> (and also making sure they are removed when the original is removed?)
don't really know how to do that
--
Erk
More information about the CMake
mailing list