MantisBT - CMake
View Issue Details
0014013CMakeCMakepublic2013-03-14 12:542016-06-06 16:40
szotsaki 
 
normalfeatureN/A
closedfixed 
CMake 2.8.10.2 
CMake 3.2CMake 3.2 
0014013: Support "continue" in foreach
Please, beside the break() command, add the support for continue() command in a foreach() loop.

Sometimes it comes very handy and helps avoiding very complex if() structures.

Reference: http://en.cppreference.com/w/cpp/language/continue [^]
No tags attached.
patch cmake_continue.patch (3,398) 2013-08-30 16:10
https://public.kitware.com/Bug/file/4865/cmake_continue.patch
? cmContinueCommand.h (2,035) 2013-08-30 16:11
https://public.kitware.com/Bug/file/4866/cmContinueCommand.h
cxx cmContinueCommand.cxx (809) 2013-08-30 16:11
https://public.kitware.com/Bug/file/4867/cmContinueCommand.cxx
patch 0001-Add-continue-keyword-14013.patch (7,319) 2014-10-23 03:32
https://public.kitware.com/Bug/file/5285/0001-Add-continue-keyword-14013.patch
Issue History
2013-03-14 12:54szotsakiNew Issue
2013-03-14 13:27Brad KingStatusnew => backlog
2013-08-30 16:10Doug BarbieriNote Added: 0033769
2013-08-30 16:10Doug BarbieriFile Added: cmake_continue.patch
2013-08-30 16:11Doug BarbieriFile Added: cmContinueCommand.h
2013-08-30 16:11Doug BarbieriFile Added: cmContinueCommand.cxx
2013-08-30 16:13Doug BarbieriNote Edited: 0033769bug_revision_view_page.php?bugnote_id=33769#r1253
2014-10-23 03:32Gregor JasnyFile Added: 0001-Add-continue-keyword-14013.patch
2014-10-23 03:33Gregor JasnyNote Added: 0037070
2014-12-01 09:54Brad KingNote Added: 0037324
2014-12-02 10:44Brad KingNote Added: 0037357
2014-12-02 10:44Brad KingStatusbacklog => resolved
2014-12-02 10:44Brad KingFixed in Version => CMake 3.2
2014-12-02 10:44Brad KingTarget Version => CMake 3.2
2015-05-04 09:05Robert MaynardNote Added: 0038686
2015-05-04 09:05Robert MaynardStatusresolved => closed
2016-06-06 16:40Brad KingResolutionopen => fixed

Notes
(0033769)
Doug Barbieri   
2013-08-30 16:10   
(edited on: 2013-08-30 16:13)
I have added a simple patch that turns on the "continue()" command, plus two source files that should live under Source.

The patch is from adding to the git repository, right after commit 457c3e888d454f10009621df91a04a38696c135e.

(0037070)
Gregor Jasny   
2014-10-23 03:33   
I ported the patch by Doug to latest master and attached it here (via git format-patch).
(0037324)
Brad King   
2014-12-01 09:54   
Mailing list thread for patch:

 [PATCH v5 0/4] Add continue keyword
 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/11675 [^]
(0037357)
Brad King   
2014-12-02 10:44   
The command has been added here:

 continue: Add a new CMake language command for loop continuation
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0de867dd [^]
(0038686)
Robert Maynard   
2015-05-04 09:05   
Closing resolved issues that have not been updated in more than 4 months.