On 2013-05-14 14:58, Nils Gladitz wrote:
Unless I misunderstand the documentation a target level dependency is automatically added if the command references a target created by add_executable.
That may be; I didn't check. Personally, I'd be inclined to be paranoid and list it anyway :-). At worst it is superfluous, but it can also serve to 'remind' someone looking at the code that may not know about the implicit dependency.
(Actually, another argument is that listing the generator as a dependency is much more likely to break early - i.e. at configure time rather than build time - if the generator target gets renamed but the custom command gets overlooked. Also, explicitly depending on the generator to force the target to re-run can also apply to non-target generators :-).)
-- Matthew -- 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
