Re: [CMake] Re: How to pass arguments to 'cmake -P' scripts?

2008-02-04 Thread Brandon Van Every
On Feb 4, 2008 3:09 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Brandon Van Every wrote: > > > > But my question is *why* must -P be the last thing? Is this a design > > flaw, or is there some shell reason for it? > > > > I think it is so you can have multiple -P options with different -D > opti

Re: [CMake] Re: How to pass arguments to 'cmake -P' scripts?

2008-02-04 Thread Bill Hoffman
Brandon Van Every wrote: On Feb 4, 2008 2:44 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: I think this is documented now in cmake 2.4.8 It is: # -P : Process script mode. Process the given cmake file as a script written in the CMake language. No configure or generate step is performed

Re: [CMake] Re: How to pass arguments to 'cmake -P' scripts?

2008-02-04 Thread Brandon Van Every
On Feb 4, 2008 2:44 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > > I think this is documented now in cmake 2.4.8 It is: # -P : Process script mode. Process the given cmake file as a script written in the CMake language. No configure or generate step is performed and the cache is not modi

Re: [CMake] Re: How to pass arguments to 'cmake -P' scripts?

2008-02-04 Thread Alexander Neundorf
On Saturday 02 February 2008, Matthew Woehlke wrote: > Ick. Please, no http://www.cygwin.com/acronyms#TOFU. > > James Bigler wrote: > > Matthew Woehlke wrote: > >> but I couldn't figure out how to tell the script what parameters it > >> should run with. > > > > [snip] > > Make sure you put the argu

[CMake] Re: How to pass arguments to 'cmake -P' scripts?

2008-02-01 Thread Matthew Woehlke
Ick. Please, no http://www.cygwin.com/acronyms#TOFU. James Bigler wrote: Matthew Woehlke wrote: but I couldn't figure out how to tell the script what parameters it should run with. [snip] Make sure you put the arguments before theh -P ${my_cmake_script} or the arguments won't get passed in.