[CMake] Re: add_custom_command dependencies in an auxiliary variable

Brandon Van Every bvanevery at gmail.com
Fri Jan 18 14:41:47 EST 2008


On Jan 18, 2008 4:59 AM, Rodolfo Lima <rodolfo at rodsoft.org> wrote:
> Brandon Van Every escreveu:
>
> > 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?
>
> It's a bit burdensome when the dependencies exceed the count of 10 or
> 20. Ok, I could create them in a variable and use it,

That's the usual way to do it.

> but I'd like to mimic the gnu-make behavior.

Why?  Just because you know it?  That's not a good reason to put it
into CMake, if CMake can already accomplish the same thing.  Commands
like $^ are cryptic.


Cheers,
Brandon Van Every


More information about the CMake mailing list