From 907bc3543727767b72e3d9085dbb3c02b1a717ae Mon Sep 17 00:00:00 2001 From: Vitaly Stakhovsky Date: Wed, 13 Dec 2017 19:16:54 -0500 Subject: VS: Emit "utf-8" encoding as lowercase in .vcxproj headers Match the XML preamble generated by VS 2010 and later. --- Source/cmGlobalVisualStudio10Generator.cxx | 5 +++++ Source/cmGlobalVisualStudio10Generator.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx index 8c9e461..4c4c62c 100644 --- a/Source/cmGlobalVisualStudio10Generator.cxx +++ b/Source/cmGlobalVisualStudio10Generator.cxx @@ -951,6 +951,11 @@ void cmGlobalVisualStudio10Generator::PathTooLong(cmGeneratorTarget* target, } } +std::string cmGlobalVisualStudio10Generator::Encoding() +{ + return "utf-8"; +} + bool cmGlobalVisualStudio10Generator::IsNsightTegra() const { return !this->NsightTegraVersion.empty(); diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h index 5f80c73..fc21193 100644 --- a/Source/cmGlobalVisualStudio10Generator.h +++ b/Source/cmGlobalVisualStudio10Generator.h @@ -96,6 +96,7 @@ public: void PathTooLong(cmGeneratorTarget* target, cmSourceFile const* sf, std::string const& sfRel); + std::string Encoding() override; virtual const char* GetToolsVersion() { return "4.0"; } bool FindMakeProgram(cmMakefile* mf) override; -- cgit v0.12