[CMake] svn info from cmake script?

Abe Stephens abe at sci.utah.edu
Mon Jul 24 18:48:17 EDT 2006


How can I have a CMake script run if a certain non-source file has 
changed since the last project build?

I have a script which extracts some revision information from "svn info" 
and places it in a source file via CONFIGURE_FILE. I'd like this script 
to be executed during build every time the 
${CMAKE_SOURCE_DIR}/.svn/entries file changes.  (This file is altered 
every time I commit a file or update from the repository.)

Is this possible?

Thanks--
Abe


More information about the CMake mailing list