[CMake] add_custom_command dependencies in an auxiliary variable

Brandon Van Every bvanevery at gmail.com
Thu Jan 17 22:34:10 EST 2008


On Jan 17, 2008 9:15 PM, Rodolfo Lima <rodolfo at rodsoft.org> wrote:
> Hi, I wonder if it's possible to add_custom_command create a temporary
> variable which contents are all dependencies of the custom command. This
> could be used if one command shall contain all dependencies in its
> command line. gnu make does that with $^ (i think). Something similar
> with the output file name would be good (like $@ in gnu-make).

The dependencies of an add_custom_command are completely under your
control anyways.  You specify them.  Why don't you just re-specify
them in your command?


Cheers,
Brandon Van Every


More information about the CMake mailing list