summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-04-08 13:15:02 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2020-04-13 11:26:03 -0400
commit80edc2cd8a22e05e8e0f690d615a06ecf25f3446 (patch)
tree9daf3ced9889746f5398eeaa215807a5c8dcd83f /Source
parent37872088cf52ac8a9f1adc4648e23c6fb54be097 (diff)
downloadcmake-80edc2cd8a22e05e8e0f690d615a06ecf25f3446.tar.gz
cmMakefile: use std::string_view
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 0b532e7b58..15b8b9217d 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -24,6 +24,7 @@
#include "cm_jsoncpp_value.h"
#include "cm_jsoncpp_writer.h"
+#include "cm_static_string_view.hxx"
#include "cm_sys_stat.h"
#include "cmAlgorithms.h"
@@ -2513,7 +2514,7 @@ void cmMakefile::ExpandVariablesCMP0019()
for (auto l = linkLibs.begin(); l != linkLibs.end(); ++l) {
std::string libName = *l;
- if (libName == "optimized" || libName == "debug") {
+ if (libName == "optimized"_s || libName == "debug"_s) {
++l;
libName = *l;
}