[CMake] functions & custom commands- what's the trick?

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Feb 20 12:25:02 EST 2009


On Fri, Feb 20, 2009 at 6:14 PM, Mike Arthur <mike at mikearthur.co.uk> wrote:
> On Friday 20 February 2009 08:22:59 Aaron Turner wrote:
>> I seem to be missing something painfully obvious, but I'm not sure what.
> You don't enter it into add_custom_command, that's for shell commands., just
> enter "clean_standard_files()" into your CMakeLists.
>
> You can't run CMake functions at "Make" time though, only "CMake" time (which
> will only be called to first generate or if the CMake files have changed).

Just to avoid any confusion... you can but you have to use the script
mode: cmake -P

2cts
-- 
Mathieu


More information about the CMake mailing list