[CMake] Dependency on CONFIGURE_FILE output

Alexander Neundorf a.neundorf-work at gmx.net
Tue Jul 11 02:51:17 EDT 2006


-------- Original-Nachricht --------
Datum: Tue, 11 Jul 2006 12:45:16 +0930
Von: Patrick Noffke <Patrick.Noffke at adpro.com.au>
An: cmake at cmake.org
Betreff: [CMake] Dependency on CONFIGURE_FILE output

> How do I create a dependency on the output of a CONFIGURE_FILE operation? 
> I tried adding the output file as a dependency to a custom command, but if
> I remove only the generated output file after a successful build, then run
> nmake again, I get an error "don't know how to make <output file name>". 
> If I do a clean build, then the file is generated.

Configure_file() is executed when cmake runs, not during build time.

(it would be nice if one would be able to give add_custom_command/target()) a bunch of cmake code to be executed at build time)

Bye
Alex

-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


More information about the CMake mailing list