[CMake] Dependency resolution for "add_custom_command" calls?

Matthew Woehlke mw_triad at users.sourceforge.net
Thu Apr 10 12:03:46 EDT 2014


On 2014-04-09 12:08, SF Markus Elfring wrote:
> I try to generate some files mainly by calls of the command
> "add_custom_command". One of them should start with the action to copy a source
> file into the build directory.
>
> But I wonder why this step is not written into a generated make file.
> I would appreciate your advices.

CMake drops unused dependencies / rules from the generated build script. 
Do you have a target that depends on the output file?

-- 
Matthew



More information about the CMake mailing list