Add differing target property content to policy CMP0022 warning
List the contents of the INTERFACE_LINK_LIBRARIES and the old-style property.
This commit is contained in:
parent
7c7cdf7073
commit
81d2793e92
|
@ -6443,7 +6443,13 @@ bool cmTarget::ComputeLinkInterface(const char* config, LinkInterface& iface,
|
||||||
->GetPolicyWarning(cmPolicies::CMP0022)) << "\n"
|
->GetPolicyWarning(cmPolicies::CMP0022)) << "\n"
|
||||||
<< "Target \"" << this->GetName() << "\" has a "
|
<< "Target \"" << this->GetName() << "\" has a "
|
||||||
"INTERFACE_LINK_LIBRARIES property which differs from its "
|
"INTERFACE_LINK_LIBRARIES property which differs from its "
|
||||||
<< linkIfaceProp << " properties.";
|
<< linkIfaceProp << " properties."
|
||||||
|
"\n"
|
||||||
|
"INTERFACE_LINK_LIBRARIES:\n "
|
||||||
|
<< newExplicitLibraries
|
||||||
|
<< "\n"
|
||||||
|
<< linkIfaceProp << ":\n "
|
||||||
|
<< explicitLibraries << "\n";
|
||||||
this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, w.str());
|
this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, w.str());
|
||||||
}
|
}
|
||||||
// Fall through
|
// Fall through
|
||||||
|
|
|
@ -5,4 +5,13 @@ CMake Warning \(dev\) in CMakeLists.txt:
|
||||||
|
|
||||||
Target "bar" has a INTERFACE_LINK_LIBRARIES property which differs from its
|
Target "bar" has a INTERFACE_LINK_LIBRARIES property which differs from its
|
||||||
LINK_INTERFACE_LIBRARIES properties.
|
LINK_INTERFACE_LIBRARIES properties.
|
||||||
|
|
||||||
|
INTERFACE_LINK_LIBRARIES:
|
||||||
|
|
||||||
|
foo
|
||||||
|
|
||||||
|
LINK_INTERFACE_LIBRARIES:
|
||||||
|
|
||||||
|
bat
|
||||||
|
|
||||||
This warning is for project developers. Use -Wno-dev to suppress it.$
|
This warning is for project developers. Use -Wno-dev to suppress it.$
|
||||||
|
|
|
@ -5,4 +5,13 @@ CMake Warning \(dev\) in CMakeLists.txt:
|
||||||
|
|
||||||
Target "bar" has a INTERFACE_LINK_LIBRARIES property which differs from its
|
Target "bar" has a INTERFACE_LINK_LIBRARIES property which differs from its
|
||||||
LINK_INTERFACE_LIBRARIES properties.
|
LINK_INTERFACE_LIBRARIES properties.
|
||||||
|
|
||||||
|
INTERFACE_LINK_LIBRARIES:
|
||||||
|
|
||||||
|
foo
|
||||||
|
|
||||||
|
LINK_INTERFACE_LIBRARIES:
|
||||||
|
|
||||||
|
bat
|
||||||
|
|
||||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||||
|
|
Loading…
Reference in New Issue