From 60fab8a6e08a014bc66b2347b4d1037ad52164c7 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 15 Apr 2022 13:33:31 -0400 Subject: 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. --- Source/cmInstallCommand.cxx | 6 +++--- .../target_sources/FileSetInstallMissingSetsInterface-stderr.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index 8ce7ed1..bb08215 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -741,9 +741,9 @@ bool HandleTargetsMode(std::vector const& args, [=](const cmInstallCommandFileSetArguments& fileSetArg) -> bool { return fileSetArg.GetFileSet() == name; }); })) { - status.SetError(cmStrCat( - "TARGETS target ", target.GetName(), - " is exported but not all of its file sets are installed")); + status.SetError(cmStrCat("TARGETS target ", target.GetName(), + " is exported but not all of its interface " + "file sets are installed")); return false; } diff --git a/Tests/RunCMake/target_sources/FileSetInstallMissingSetsInterface-stderr.txt b/Tests/RunCMake/target_sources/FileSetInstallMissingSetsInterface-stderr.txt index 694f227..8b06ebd 100644 --- a/Tests/RunCMake/target_sources/FileSetInstallMissingSetsInterface-stderr.txt +++ b/Tests/RunCMake/target_sources/FileSetInstallMissingSetsInterface-stderr.txt @@ -1,5 +1,5 @@ ^CMake Error at FileSetInstallMissingSetsInterface\.cmake:[0-9]+ \(install\): - install TARGETS target lib1 is exported but not all of its file sets are - installed + install TARGETS target lib1 is exported but not all of its interface file + sets are installed Call Stack \(most recent call first\): CMakeLists\.txt:[0-9]+ \(include\)$ -- cgit v0.12