diff options
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 37373ae..5d910d0 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -4494,7 +4494,7 @@ void cmake::WatchUnusedCli(const char* var) #endif } -void cmake::RunCheckForUnusedVariables() const +void cmake::RunCheckForUnusedVariables(const std::string& reason) const { #ifdef CMAKE_BUILD_WITH_CMAKE if(this->WarnUnusedCli) @@ -4506,7 +4506,8 @@ void cmake::RunCheckForUnusedVariables() const if(!it->second) { std::string message = "warning: The variable, '" + it->first + - "', given on the command line, was not used within the build."; + "', given on the command line, was not used during the " + reason + + "."; cmSystemTools::Message(message.c_str()); } } |