diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-04-08 13:15:02 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-04-13 11:26:03 -0400 |
commit | 80edc2cd8a22e05e8e0f690d615a06ecf25f3446 (patch) | |
tree | 9daf3ced9889746f5398eeaa215807a5c8dcd83f /Source | |
parent | 37872088cf52ac8a9f1adc4648e23c6fb54be097 (diff) | |
download | cmake-80edc2cd8a22e05e8e0f690d615a06ecf25f3446.tar.gz |
cmMakefile: use std::string_view
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMakefile.cxx | 3 |
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; } |