[CMake] Help with dependency on custom command output

James Amundson amundson at fnal.gov
Thu Aug 5 12:16:02 EDT 2010


  On 08/05/2010 10:42 AM, David Cole wrote:
> Shouldn't that be this?
>
> add_custom_command(OUTPUT test_diagnostics_get_mean.icc
>    COMMAND python test_diagnostics_crosscheck.py
>    DEPENDS test_diagnostics_crosscheck.py)
> add_executable(test_diagnostics test_diagnostics.cc 
> test_diagnostics_get_mean.icc)
>
Yes, that does it. Thanks.

> FYI, add_dependencies is only used to establish target-to-target 
> dependencies (ordering), not file level dependencies...
> http://cmake.org/cmake/help/cmake-2-8-docs.html#command:add_dependencies

I think that was, in fact, the source of my confusion.

Thanks again,
Jim Amundson



More information about the CMake mailing list