summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorDeniz Bahadir <dbahadir@benocs.com>2017-11-03 16:22:12 (GMT)
committerDeniz Bahadir <dbahadir@benocs.com>2017-11-03 16:22:12 (GMT)
commit854e482a59d6696bbb6988a045ac701e26bb038a (patch)
treea124399e0ffe7df114361e33fa1262d4e5600b09 /Source/cmTarget.cxx
parentd455a04c53be4e52313185c7322fc9073dc2437f (diff)
downloadCMake-854e482a59d6696bbb6988a045ac701e26bb038a.zip
CMake-854e482a59d6696bbb6988a045ac701e26bb038a.tar.gz
CMake-854e482a59d6696bbb6988a045ac701e26bb038a.tar.bz2
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.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c6cd502..58a10b3 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -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);
}