[CMake] add_custom_command and re-running command when target in DEPENDS was updated

Maciej Mrozowski reavertm at gmail.com
Mon Aug 29 17:44:30 EDT 2016


On poniedziałek, 29 sierpnia 2016 23:31:59 CEST you wrote:

> add_custom_command documentation says:
> 
> <quote>
> The DEPENDS option specifies files on which the command depends. If any
> dependency is an OUTPUT of another custom command in the same directory
> (CMakeLists.txt file) CMake automatically brings the other custom command
> into the target in which this command is built.

One possibly important note I forgot.
Mentioned add_jar and add_custom_command in my case are NOT in the same 
directory, but I guess it should not matter since I have explicit 'DEPENDS 
generator'?

-- 
regards
MM


More information about the CMake mailing list