mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user