[CMake] file(WRITE) versus configure_file

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jun 17 16:54:45 EDT 2009


On Friday 05 June 2009, Eric Noulard wrote:
> 2009/6/5 James Bigler <jamesbigler at gmail.com>:
> >   if(NOT EXISTS ${dependency_file})
> >     #message("configuring dependency_file = ${dependency_file}")
> >     configure_file(
> >       ${empty_file}
> >       ${dependency_file} IMMEDIATE)
> >   endif()
>
> The "IMMEDIATE" thing doesn't seem to be document, is it obsolete
> or undocumented?

It's obsolete, it's the default behaviour since a cmake 2.2 I think.
It was still documented in 2.0:
http://www.cmake.org/Wiki/CMake_2.0.6_Docs

Alex


More information about the CMake mailing list