summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 1d8a847..f7b7ada 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -785,6 +785,9 @@ void cmake::ReadListFile(const std::vector<std::string>& args,
mf.SetArgcArgv(args);
}
+ if (!cmSystemTools::FileExists(path, true)) {
+ cmSystemTools::Error("Not a file: " + path);
+ }
if (!mf.ReadListFile(path)) {
cmSystemTools::Error("Error processing file: " + path);
}