cmTarget: Simplified and fixed a string-comparision.

Before this change, `cmTarget::CheckProperty` accepted several strings
as valid properties, including all strings prefixed with
"INTERFACE_LINK_LIBRARIES". Now, that particular string is still
accepted but other strings prefixed with that string are no longer
accepted.
This commit is contained in:
Deniz Bahadir
2017-11-03 17:22:12 +01:00
parent d455a04c53
commit 854e482a59

View File

@@ -1157,7 +1157,7 @@ void cmTarget::CheckProperty(const std::string& prop,
cmTargetCheckLINK_INTERFACE_LIBRARIES(prop, value, context, true);
}
}
if (cmHasLiteralPrefix(prop, "INTERFACE_LINK_LIBRARIES")) {
if (prop == "INTERFACE_LINK_LIBRARIES") {
if (const char* value = this->GetProperty(prop)) {
cmTargetCheckINTERFACE_LINK_LIBRARIES(value, context);
}