Re: [CMake] Disabling Argument Parsing in CMake -P Scripts

2013-03-25 Thread Gregoire Aujay
: samedi 3 novembre 2012 00:05 To: Eskandar Ensafi Cc: cmake Subject: Re: [CMake] Disabling Argument Parsing in CMake -P Scripts On Fri, Nov 2, 2012 at 5:44 PM, Eskandar Ensafi wrote: > I'm not sure if I'm qualified to propose a patch, but I will look at the > source code to s

Re: [CMake] Disabling Argument Parsing in CMake -P Scripts

2012-11-02 Thread David Cole
On Fri, Nov 2, 2012 at 5:44 PM, Eskandar Ensafi wrote: > I'm not sure if I'm qualified to propose a patch, but I will look at the > source code to see what I can come up with. I have additional concerns about > the way the CMAKE_ARGVn variables are initialized, and this might be a good > time

Re: [CMake] Disabling Argument Parsing in CMake -P Scripts

2012-11-02 Thread Eskandar Ensafi
I'm not sure if I'm qualified to propose a patch, but I will look at the source code to see what I can come up with. I have additional concerns about the way the CMAKE_ARGVn variables are initialized, and this might be a good time to address these concerns. I don't know if this was a design ch

Re: [CMake] Disabling Argument Parsing in CMake -P Scripts

2012-11-02 Thread David Cole
"--" for script mode is a good idea. (Actually, if we had this for non-script mode even, it would then make sense to expose the command line arguments in similar variables even when configuring a CMakeLists file. Presently, the CMAKE_ARGVn vars are only available in script mode.) Can you propose a

[CMake] Disabling Argument Parsing in CMake -P Scripts

2012-11-01 Thread Eskandar Ensafi
Hello, I often find it very useful to run CMake scripts of the form "cmake -P script-name arg1 arg2 ..." as a cross-platform scripting solution that doesn't rely on Perl, Python, etc. One major limitation is that CMake continues to parse all arguments after the script name. For example, if ar