[CMake] CUSTOM COMMAND triggered several times

Tyler Roscoe tyler at cryptio.net
Wed Aug 19 11:09:21 EDT 2009


Make sure you reply to the list so others can help you.

On Wed, Aug 19, 2009 at 10:11:02AM +0200, Arnaud Devalkeneer wrote:
> In order to undestand how cmake works, I made a simple test.
> I simplified the mechanism only using one single file as output and one
> single .cdl file as the dependency.
> When I change the targeted cdl file, cmake detects the change but call twice
> the custom command.
> And when I re-run the make, I still have the same behaviour. (even the
> output exists and the cdl file has not been changed since last make call).
> I do not understand why?
> 
> Could explain me a bit the mechanism used by cmake to trigger the custom
> command please?

Can you post your simple test and the output from make VERBOSE=1? That
might help someone see what's going wrong.

tyler


More information about the CMake mailing list