Re: [CMake] Help with dependency on custom command output

2010-08-05 Thread James Amundson
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.ic

Re: [CMake] Help with dependency on custom command output

2010-08-05 Thread David Cole
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) FYI, add_dependencies is only used to esta

[CMake] Help with dependency on custom command output

2010-08-05 Thread James Amundson
I cannot get the following simple build process to work. I must be missing something. I build a (test) executable test_diagnostics, which depends on a source file test_diagnostics.cc and a generated file test_diagnostics_get_mean.icc. I generate the latter with python test_diagnostics_cr