diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-02-27 18:54:42 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-02-27 19:52:06 (GMT) |
commit | 185d1aefaa209115d21c6c821ff85f64411e95de (patch) | |
tree | 3cdb8491c92fa55e004054966c0cc646c8a3d076 /Source/cmForEachCommand.cxx | |
parent | a33b3949e5337da978828d611f3ca3f08bcda21b (diff) | |
download | CMake-185d1aefaa209115d21c6c821ff85f64411e95de.zip CMake-185d1aefaa209115d21c6c821ff85f64411e95de.tar.gz CMake-185d1aefaa209115d21c6c821ff85f64411e95de.tar.bz2 |
foreach: Set fatal error on invalid range
Fixes: #20394
Diffstat (limited to 'Source/cmForEachCommand.cxx')
-rw-r--r-- | Source/cmForEachCommand.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx index 08e51ad..0546186 100644 --- a/Source/cmForEachCommand.cxx +++ b/Source/cmForEachCommand.cxx @@ -428,6 +428,7 @@ bool cmForEachCommand(std::vector<std::string> const& args, status.SetError( cmStrCat("called with incorrect range specification: start ", start, ", stop ", stop, ", step ", step)); + cmSystemTools::SetFatalErrorOccured(); return false; } |