[CMake] ARGV to ARGN translation debugging

Joe climberking2000 at gmail.com
Mon Nov 17 14:54:35 EST 2014


Hey all,

Looks like Bill's got it. Thanks Bill. FYI, this was done as part of doing
parameter sweeps (run tests with all combinations of various parameters and
settings), when it has been made pretty it may get committed back.

Best,

David

On Mon, Nov 17, 2014 at 11:44 AM, Bill Hoffman <bill.hoffman at kitware.com>
wrote:

> On 11/17/2014 1:44 PM, Joe wrote:
>
>>
>> 1) How  can the same ARGV to the same function give different ARGN's? My
>> feeling is that the answer is "never, it's something in how the MESSAGE
>> command displays lists."
>> 2) How can we display lists in a way that allows us to see the
>> differences between them? That is, is there some function  which I can
>> replace MESSAGE with in order to see the discrepancy between these two
>> lists?
>>
> To me it looks like in the first call all of this stuff:
> Multifield_Repartition;SOURCES;multifield_repartition.cpp;COMM;mpi;
> serial;STANDARD_PASS_OUTPUT;NUM_MPI_PROCS;4;FAIL_REGULAR_EXPRESSION;TEST
> FAILED;PASS_REGULAR_EXPRESSION;TEST PASSED;ARGS;--num_particles=
> 50;--num_dimensions=2
>
> is crammed into one variable.
>
> It might be clearer if you changed your messages to do this:
>   MESSAGE("FINAL EXE_NAME: ${EXE_NAME}")
>   MESSAGE("FINAL ARGV: ${ARGV}")
>   MESSAGE("FINAL ARGN: ${ARGN}")
>
> Most likely it was called quoted?
>
> my_func("lots of stuff;foo;bar")
> vs
> my_func("lots of stuff" foo bar)
>
> -Bill
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141117/29de159b/attachment-0001.html>


More information about the CMake mailing list