mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-22 07:25:02 +08:00
Give a better message for unused variables
This commit is contained in:
@@ -4321,7 +4321,7 @@ void cmake::RunCheckForUnusedVariables(const std::string& reason) const
|
|||||||
if(!it->second)
|
if(!it->second)
|
||||||
{
|
{
|
||||||
std::string message = "CMake Warning: The variable, '" + it->first +
|
std::string message = "CMake Warning: The variable, '" + it->first +
|
||||||
"', given on the command line, was not used during the " + reason +
|
"', specified manually, was not used during the " + reason +
|
||||||
".";
|
".";
|
||||||
cmSystemTools::Message(message.c_str());
|
cmSystemTools::Message(message.c_str());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user