diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index bf723c518..f6d8e6c10 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1270,7 +1270,10 @@ void cmSystemTools::ExpandListArgument(const std::string& arg, } break; case ']': { - --squareNesting; + if(squareNesting) + { + --squareNesting; + } newArgVec.push_back(*c); } break; case ';':