[CMake] Running a function as a build target

2014-06-09 Thread Rick McGuire
Is it possible to invoke a script function as part of a target? I have a build step where I need to process a bunch of variable values before building a particular target. All of the custom targets require a COMMAND, not a function. I thought maybe I could push this off to a script invoked by

Re: [CMake] Running a function as a build target

2014-06-09 Thread David Cole
Is it possible to invoke a script function as part of a target? No, because the variable values are all gone after CMake finishes running. And the custom build targets do not run until later at build time.  I have a build step where I need to process a bunch of variable values before

Re: [CMake] Running a function as a build target

2014-06-09 Thread Nils Gladitz
On 09.06.2014 12:58, Rick McGuire wrote: Is it possible to invoke a script function as part of a target? I have a build step where I need to process a bunch of variable values before building a particular target. All of the custom targets require a COMMAND, not a function. I thought maybe I