diff options
author | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-16 17:47:42 (GMT) |
---|---|---|
committer | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-22 16:11:45 (GMT) |
commit | 1bb0e59318f8160560d4010b95724de1cba36e7c (patch) | |
tree | 41a8d9ae75b2f4cfa535200c2cedb0920e21515e /Source/cmMakefileTargetGenerator.cxx | |
parent | 64821d8a267585c0d4d9350f162690c2c518860b (diff) | |
download | CMake-1bb0e59318f8160560d4010b95724de1cba36e7c.zip CMake-1bb0e59318f8160560d4010b95724de1cba36e7c.tar.gz CMake-1bb0e59318f8160560d4010b95724de1cba36e7c.tar.bz2 |
codecvt: Extrace codecvt::Encoding to remove codecvt includes
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 5f27856..1dd48b3 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -17,7 +17,7 @@ #include <cmext/algorithm> #include <cmext/string_view> -#include "cm_codecvt.hxx" +#include "cm_codecvt_Encoding.hxx" #include "cmComputeLinkInformation.h" #include "cmCustomCommand.h" @@ -2129,12 +2129,12 @@ std::string cmMakefileTargetGenerator::CreateResponseFile( // FIXME: Find a better way to determine the response file encoding, // perhaps using tool-specific platform information variables. // For now, use the makefile encoding as a heuristic. - codecvt::Encoding responseEncoding = + codecvt_Encoding responseEncoding = this->GlobalGenerator->GetMakefileEncoding(); // Non-MSVC tooling doesn't understand BOM encoded files. - if (responseEncoding == codecvt::UTF8_WITH_BOM && + if (responseEncoding == codecvt_Encoding::UTF8_WITH_BOM && (language == "CUDA" || !this->Makefile->IsOn("MSVC"))) { - responseEncoding = codecvt::UTF8; + responseEncoding = codecvt_Encoding::UTF8; } // Create the response file. |