diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-27 16:23:22 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-27 23:10:39 (GMT) |
commit | 3f1378fbcab72a849908bbc988254f392d04c41a (patch) | |
tree | 0dcf9d2e38272b101fa4bfb12133a22c9fb2def7 /Source/cmGlobalWatcomWMakeGenerator.cxx | |
parent | 7e3b9af191b1ae596b228d8ac3d709eecf8d82d4 (diff) | |
download | CMake-3f1378fbcab72a849908bbc988254f392d04c41a.zip CMake-3f1378fbcab72a849908bbc988254f392d04c41a.tar.gz CMake-3f1378fbcab72a849908bbc988254f392d04c41a.tar.bz2 |
strings: compare to static `string_view` instances in Windows-only code
Diffstat (limited to 'Source/cmGlobalWatcomWMakeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalWatcomWMakeGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGlobalWatcomWMakeGenerator.cxx b/Source/cmGlobalWatcomWMakeGenerator.cxx index ed44e6b..ca7a1b9 100644 --- a/Source/cmGlobalWatcomWMakeGenerator.cxx +++ b/Source/cmGlobalWatcomWMakeGenerator.cxx @@ -4,6 +4,9 @@ #include <ostream> +#include <cm/string_view> +#include <cmext/string_view> + #include "cmGlobalGenerator.h" #include "cmMakefile.h" #include "cmState.h" @@ -46,7 +49,7 @@ void cmGlobalWatcomWMakeGenerator::EnableLanguage( bool cmGlobalWatcomWMakeGenerator::SetSystemName(std::string const& s, cmMakefile* mf) { - if (mf->GetSafeDefinition("CMAKE_SYSTEM_PROCESSOR") == "I86") { + if (mf->GetSafeDefinition("CMAKE_SYSTEM_PROCESSOR") == "I86"_s) { mf->AddDefinition("CMAKE_GENERATOR_CC", "wcl"); mf->AddDefinition("CMAKE_GENERATOR_CXX", "wcl"); } |