1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 20:46:37 +08:00

cmInstallCommand: tweak error message

Not all filesets need to be installed; just those that are visible on
the target's interface. Clarify the error message.
This commit is contained in:
Ben Boeckel
2022-04-15 13:33:31 -04:00
parent 33c6d01e82
commit 60fab8a6e0
2 changed files with 5 additions and 5 deletions

View File

@@ -741,9 +741,9 @@ bool HandleTargetsMode(std::vector<std::string> const& args,
[=](const cmInstallCommandFileSetArguments& fileSetArg) [=](const cmInstallCommandFileSetArguments& fileSetArg)
-> bool { return fileSetArg.GetFileSet() == name; }); -> bool { return fileSetArg.GetFileSet() == name; });
})) { })) {
status.SetError(cmStrCat( status.SetError(cmStrCat("TARGETS target ", target.GetName(),
"TARGETS target ", target.GetName(), " is exported but not all of its interface "
" is exported but not all of its file sets are installed")); "file sets are installed"));
return false; return false;
} }

View File

@@ -1,5 +1,5 @@
^CMake Error at FileSetInstallMissingSetsInterface\.cmake:[0-9]+ \(install\): ^CMake Error at FileSetInstallMissingSetsInterface\.cmake:[0-9]+ \(install\):
install TARGETS target lib1 is exported but not all of its file sets are install TARGETS target lib1 is exported but not all of its interface file
installed sets are installed
Call Stack \(most recent call first\): Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$ CMakeLists\.txt:[0-9]+ \(include\)$