diff options
author | Brad King <brad.king@kitware.com> | 2009-10-23 15:34:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-23 15:34:37 (GMT) |
commit | 5484550af63946292c96baba472b7a959f0dfb9d (patch) | |
tree | 92ed5338eaca8c4a445a98af6b49c74372faf6ba /Source/cmVisualStudio10TargetGenerator.h | |
parent | d4377c33777fe523edd3b9744a85c360feba5fa0 (diff) | |
download | CMake-5484550af63946292c96baba472b7a959f0dfb9d.zip CMake-5484550af63946292c96baba472b7a959f0dfb9d.tar.gz CMake-5484550af63946292c96baba472b7a959f0dfb9d.tar.bz2 |
Detect and set Unicode character set in VS 10
This commit teaches the VS 10 generator to detect the -D_UNICODE option
in preprocessor definitions and set the CharacterSet attribute to the
value 'Unicode'. This was already done for other VS IDE versions.
See issue #9769
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h index f70a066..989db71 100644 --- a/Source/cmVisualStudio10TargetGenerator.h +++ b/Source/cmVisualStudio10TargetGenerator.h @@ -21,6 +21,7 @@ class cmSourceFile; class cmCustomCommand; class cmLocalVisualStudio7Generator; class cmComputeLinkInformation; +class cmVisualStudioGeneratorOptions; #include "cmSourceGroup.h" class cmVisualStudio10TargetGenerator @@ -49,6 +50,8 @@ private: void WriteObjSources(); void WritePathAndIncrementalLinkOptions(); void WriteItemDefinitionGroups(); + void ComputeClOptions(); + void ComputeClOptions(std::string const& configName); void WriteClOptions(std::string const& config, std::vector<std::string> const & includes); void WriteRCOptions(std::string const& config, @@ -75,6 +78,9 @@ private: std::vector<cmSourceFile*> const& sources, std::vector<cmSourceGroup>& ); private: + typedef cmVisualStudioGeneratorOptions Options; + typedef std::map<cmStdString, Options*> OptionsMap; + OptionsMap ClOptions; std::string ModuleDefinitionFile; std::string PathToVcxproj; cmTarget* Target; |