On 11/06/2014 03:20 PM, Gregor Jasny wrote: > As you can see in the patch the if command detects the continue > invocation and aborts looping over the collected commands.
Right. > IMHO what's needed is a in loop counter that counts how deep we are in a > loop construct. It gets incremented within every foreach or while loop. > Decremented with each endforeach or endwhile. Take a look at uses of LexicalPushPop, ScopePushPop, and PolicyPushPop. Something similar may work for maintaining a loop nesting count. Thanks, -Brad -- 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-developers