<div dir="ltr"><div>Hey all,<br><br>I know that ARGV is all arguments, and ARGN is all arguments past the last expected argument. I find myself in a weird situation with these, where identical ARGV's in the same function lead to different ARGN's. The relevant code in the CMake script is below<br><br>FUNCTION(MY_FUNC_NAME EXE_NAME)<br><br></div>  MESSAGE("FINAL ARGV: ${ARGV}")<br><div>  MESSAGE("FINAL ARGN: ${ARGN}")<br>  .............<br></div><div>ENDFUNCTION()<br><br></div><div>Two different calls lead to the following outputs<br><br>FINAL ARGV: 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<br>FINAL ARGN:<br><br>FINAL ARGV: 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<br>FINAL ARGN: 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<br><br></div><div>The formatting in an email is weird, but a diff on these outputs is empty on the argv lines, the only difference is in the ARGN.<br><br></div><div>So I could use the answer to either of the following questions:<br><br></div><div>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."<br></div><div>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?<br><br></div><div>More info available on request, I'm still new enough to CMake to not know what to report, the CMake versions used are git head ( 3609fceee75b4f3751a702ac0a7f21e5cbd67a0a ) and a release (2.8.12.2), problem is identical in each case.<br></div><div><br></div><div>Best,<br><br>David<br></div></div>