summaryrefslogtreecommitdiff
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-08-01 12:57:18 +0200
committerSebastian Holtermann <sebholt@xwmw.org>2019-08-01 13:33:00 +0200
commita693e875db5d0939a316955f513396e533153b6d (patch)
treee063b89a0bb0d69ce7c3f332d7e03a8efec6421b /Source/cmGeneratorTarget.cxx
parent33d9a691306956750bffb10be9d0b17a47c0ec0b (diff)
downloadcmake-a693e875db5d0939a316955f513396e533153b6d.tar.gz
Cleanups: Use cmHas{Prefix,Suffix} instead of String{Starts,Ends}With
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 38f34ac676..7340bc2574 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -4192,7 +4192,7 @@ cmGeneratorTarget::GetTargetSourceFileFlags(const cmSourceFile* sf) const
if (stripResources) {
flags.MacFolder = "";
}
- } else if (cmSystemTools::StringStartsWith(location, "Resources/")) {
+ } else if (cmHasLiteralPrefix(location, "Resources/")) {
flags.Type = cmGeneratorTarget::SourceFileTypeDeepResource;
if (stripResources) {
flags.MacFolder += strlen("Resources/");