summaryrefslogtreecommitdiff
path: root/Source/cmVisualStudio10TargetGenerator.h
diff options
context:
space:
mode:
authorMartin Mitas <mity@morous.org>2014-07-10 01:01:18 +0200
committerBrad King <brad.king@kitware.com>2014-07-10 14:33:27 -0400
commit5d8738468f3eb6f45035d1f77c23ef5fdf490af6 (patch)
tree2c1a2a35afb6079882de62b598fe45295dfb0823 /Source/cmVisualStudio10TargetGenerator.h
parent55d3e88fb7eb5cfdb58c5617133dfaf70d3b0547 (diff)
downloadcmake-5d8738468f3eb6f45035d1f77c23ef5fdf490af6.tar.gz
VS: Fix handling of non-preprocessor flags in CMAKE_RC_FLAGS
Teach the VS >= 10 generator to honor flags other than -I and -D in the CMAKE_RC_FLAGS[_<CONFIG>] variable. Place them within the ResourceCompile .vcxproj element under AdditionalOptions. Also add a rudimentary flag map to map '-n' to 'NullTerminateStrings'.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h
index 8f2facaec2..6bdb40a49e 100644
--- a/Source/cmVisualStudio10TargetGenerator.h
+++ b/Source/cmVisualStudio10TargetGenerator.h
@@ -72,6 +72,8 @@ private:
bool ComputeClOptions(std::string const& configName);
void WriteClOptions(std::string const& config,
std::vector<std::string> const & includes);
+ bool ComputeRcOptions();
+ bool ComputeRcOptions(std::string const& config);
void WriteRCOptions(std::string const& config,
std::vector<std::string> const & includes);
bool ComputeLinkOptions();
@@ -101,6 +103,7 @@ private:
bool IsResxHeader(const std::string& headerFile);
cmIDEFlagTable const* GetClFlagTable() const;
+ cmIDEFlagTable const* GetRcFlagTable() const;
cmIDEFlagTable const* GetLibFlagTable() const;
cmIDEFlagTable const* GetLinkFlagTable() const;
@@ -108,6 +111,7 @@ private:
typedef cmVisualStudioGeneratorOptions Options;
typedef std::map<std::string, Options*> OptionsMap;
OptionsMap ClOptions;
+ OptionsMap RcOptions;
OptionsMap LinkOptions;
std::string PathToVcxproj;
cmTarget* Target;