[CMake] calling c-compiler by hand

Michael Hertling mhertling at online.de
Mon Jul 12 14:24:53 EDT 2010


On 07/12/2010 07:06 PM, Jochen Wilhelmy wrote:
> Hi!
> 
> adding
> 
> ${CMAKE_CURRENT_SOURCE_DIR}/VersionInfo.cpp
> to the source files does not have the desired effect.
> If I change some file of the target, VersionInfo.cpp
> does not get recompiled and therefore the current version
> is not incorporated into the build.
> Therefore I want to recompile it as pre-link step.
> Any Ideas how to do it?

<http://www.mail-archive.com/cmake@cmake.org/msg29944.html>

It should be easy to replace Git by Subversion in the example.

Regards,

Michael


More information about the CMake mailing list