Re: [CMake] COMMAND dependencies with add_custom_command()

2017-02-03 Thread Craig Scott
Great, thanks. That was a similar case to the example I was using to experiment with this stuff, I just hadn't picked up that if generated.out already existed, it wouldn't be rebuilt if generate.cpp changed. Cheers. On Thu, Feb 2, 2017 at 7:12 AM, Matthew Woehlke wrote: > On 2017-01-25 20:25, Cr

Re: [CMake] COMMAND dependencies with add_custom_command()

2017-02-01 Thread Matthew Woehlke
On 2017-01-25 20:25, Craig Scott wrote: > The documentation for add_custom_command() contains this little nugget when > discussing the COMMAND keyword: > > If COMMAND specifies an executable target name .. Additionally a >> target-level dependency will be added so that the executable target wi

[CMake] COMMAND dependencies with add_custom_command()

2017-01-25 Thread Craig Scott
The documentation for add_custom_command() contains this little nugget when discussing the COMMAND keyword: If COMMAND specifies an executable target name .. Additionally a > target-level dependency will be added so that the executable target will be > built before any target using this custom