mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmake: Clarify error if -P script does not exist
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
^CMake Error: Error processing file: .*/Tests/RunCMake/CommandLine/C-no-file-build/nosuchcachefile.txt
|
||||
^CMake Error: Not a file: .*/Tests/RunCMake/CommandLine/C-no-file-build/nosuchcachefile.txt
|
||||
CMake Error: The source directory ".*/Tests/RunCMake/CommandLine/C-no-file-build" does not appear to contain CMakeLists.txt.
|
||||
Specify --help for usage, or press the help button on the CMake GUI.$
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
^CMake Error: Error processing file: .*/Tests/RunCMake/CommandLine/Cno-file-build/nosuchcachefile.txt
|
||||
^CMake Error: Not a file: .*/Tests/RunCMake/CommandLine/Cno-file-build/nosuchcachefile.txt
|
||||
CMake Error: The source directory ".*/Tests/RunCMake/CommandLine/Cno-file-build" does not appear to contain CMakeLists.txt.
|
||||
Specify --help for usage, or press the help button on the CMake GUI.$
|
||||
|
||||
@@ -1 +1 @@
|
||||
^CMake Error: Error processing file: .*/Tests/RunCMake/CommandLine$
|
||||
^CMake Error: Not a file: .*/Tests/RunCMake/CommandLine$
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
^CMake Error: Error processing file: nosuchscriptfile.cmake$
|
||||
^CMake Error: Not a file: nosuchscriptfile.cmake
|
||||
CMake Error: Error processing file: nosuchscriptfile.cmake$
|
||||
|
||||
@@ -1 +1 @@
|
||||
^CMake Error: Error processing file:
|
||||
^CMake Error: Not a file:
|
||||
|
||||
Reference in New Issue
Block a user