diff options
author | scivision <scivision@users.noreply.github.com> | 2023-09-18 02:32:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-18 15:51:31 (GMT) |
commit | ca77b745e9b58fb64a51e64375fe961913ced524 (patch) | |
tree | 254e5be7e21068202aebce2740e347e08065dcd6 /Source | |
parent | d007eb70468437cb7a1f30d160f3b97263cbc087 (diff) | |
download | CMake-ca77b745e9b58fb64a51e64375fe961913ced524.zip CMake-ca77b745e9b58fb64a51e64375fe961913ced524.tar.gz CMake-ca77b745e9b58fb64a51e64375fe961913ced524.tar.bz2 |
cmake: Clarify error if -P script does not exist
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmake.cxx | 3 |
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); } |