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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to