summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorDāvis Mosāns <davispuh@gmail.com>2016-10-05 13:46:20 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-06 14:56:00 (GMT)
commitc666f8cbc6cb81b0729e116890c70096fd2101ac (patch)
treef3076e9bef190d833e291d12b8eece8201d52b8a /Source/cmGlobalGenerator.h
parentf00214aa4f8036951a926efd7dc3891d47abce49 (diff)
downloadCMake-c666f8cbc6cb81b0729e116890c70096fd2101ac.zip
CMake-c666f8cbc6cb81b0729e116890c70096fd2101ac.tar.gz
CMake-c666f8cbc6cb81b0729e116890c70096fd2101ac.tar.bz2
NMake: Use ANSI encoding for NMake Makefiles
Set ANSI encoding to cmGeneratedFileStream for use with NMake Makefile generator.
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index 4120b52..355bc56 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -10,6 +10,7 @@
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cmTargetDepend.h"
+#include "cm_codecvt.hxx"
#include <iosfwd>
#include <map>
@@ -60,6 +61,12 @@ public:
return this->GetName() == name;
}
+ /** Get encoding used by generator for makefile files */
+ virtual codecvt::Encoding GetMakefileEncoding() const
+ {
+ return codecvt::None;
+ }
+
/** Tell the generator about the target system. */
virtual bool SetSystemName(std::string const&, cmMakefile*) { return true; }