cmStandardLevelResolver: compare with static string literals
diff --git a/Source/cmStandardLevelResolver.cxx b/Source/cmStandardLevelResolver.cxx
index 7d83f7f..7204f72 100644
--- a/Source/cmStandardLevelResolver.cxx
+++ b/Source/cmStandardLevelResolver.cxx
@@ -13,7 +13,9 @@
#include <vector>
#include <cm/iterator>
+#include <cm/string_view>
#include <cmext/algorithm>
+#include <cmext/string_view>
#include "cmGeneratorExpression.h"
#include "cmGeneratorTarget.h"
@@ -185,7 +187,7 @@
}
std::string standardStr(*standardProp);
- if (this->Language == "CUDA" && standardStr == "98") {
+ if (this->Language == "CUDA"_s && standardStr == "98"_s) {
standardStr = "03";
}