diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 48048c537..b66a1789c 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -242,6 +242,12 @@ bool cmSystemTools::ParseFunction(std::ifstream& fin, cmSystemTools::GetArguments(line, arguments); } } + else + { + cmSystemTools::Error("Parse error in read function missing end )", + inbuffer); + return false; + } } return true; }