[CMake] calling c-compiler by hand

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

On 07/12/2010 08:24 PM, Michael Hertling wrote:
> 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>

As I've just seen, www.mail-archive.com modified the CMakeLists.txt
at a rather critical line; the unaltered version can be found here:




More information about the CMake mailing list