[CMake] Generator expressions in custom commands

Michael Wild themiwi at gmail.com
Tue Sep 7 02:26:05 EDT 2010


On 6. Sep, 2010, at 20:58 , David Cole wrote:

> On Mon, Sep 6, 2010 at 2:34 PM, Michael Wild <themiwi at gmail.com> wrote:
> 
>> Hi all
>> 
>> add_test(NAME <name> COMMAND <command>) has these cool generator
>> expressions, where one can use e.g $<TARGET_FILE:tgtname> to obtain the file
>> name of the target. I wondered whether there was a reason as to why this
>> feature isn't available in custom commands, especially in the TARGET form,
>> where it would be really useful in a POST_BUILD command.
>> 
>> Michael
> 
> Hi Michael,
> 
> Same reason as always: too many features, not enough time.
> 
> We would love to extend that sort of syntax to custom commands as well. It
> has simply not been the focus of anybody's time or money budget yet.
> 
> 
> Cheers,
> David


The only acceptable answer ;-)

In case somebody gets bored: http://cmake.org/Bug/view.php?id=11209

--
There is always a well-known solution to every human problem -- neat, plausible, and wrong.
H. L. Mencken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100907/9277764b/attachment.pgp>


More information about the CMake mailing list