diff options
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index c3cd0cc..f72992c 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -522,8 +522,10 @@ const char *cmSystemTools::ConvertToWindowsSlashesAndCleanUp(std::string& path) bool cmSystemTools::ParseFunction(std::ifstream& fin, std::string& name, std::vector<std::string>& arguments, - const char* filename) + const char* filename, + bool& parseError) { + parseError = false; name = ""; arguments = std::vector<std::string>(); const int BUFFER_SIZE = 4096; @@ -586,6 +588,7 @@ bool cmSystemTools::ParseFunction(std::ifstream& fin, } else { + parseError = true; cmSystemTools::Error("Parse error in read function missing end )\nIn File: ", filename, "\nCurrent line:", inbuffer); return false; @@ -595,6 +598,7 @@ bool cmSystemTools::ParseFunction(std::ifstream& fin, } else { + parseError = true; cmSystemTools::Error("Parse error in read function\nIn file:", filename, "\nCurrent line:", inbuffer); return false; |