2009/6/5 James Bigler jamesbig...@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
2009/6/4 James Bigler jamesbig...@gmail.com:
Back in the day before file(WRITE) there was write_file(). write_file() had
the problem that you couldn't use the file as input to CMake, so you had to
use configure_file.
What do you mean as input, you mean a source file in
add_library or
if(NOT EXISTS ${dependency_file})
#message(configuring dependency_file = ${dependency_file})
configure_file(
${empty_file}
${dependency_file} IMMEDIATE)
endif()
# Always include this file to force CMake to run again next
# invocation and rebuild the dependencies.