[CMake] Action to perform unconditionally

Ilja Golshtein ilejncs at narod.ru
Wed Feb 2 09:50:35 EST 2011


02.02.2011, 17:37, "Michael Hertling" <mhertling at online.de>:
>>  Obviously I can choose arbitrary executable and link my target to it.
>
> Preferably, choose the targets which need the version.h header.

All executables (well ... but some tests) require version.h

Looks like the cleanest approach is to have all executables dependent on version.h

> Another possible approach would be a dependency of the built-in target
> "all" on the custom target which generates the header, so consider to
> vote for #8438 when the question for the most appreciated bug fixes /
> feature requests will be asked again.

I will.

Thanks a lot.

-- 
Best regards,
Ilja Golshtein.


More information about the CMake mailing list