summaryrefslogtreecommitdiffstats
path: root/Source/cmCommonTargetGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-09 14:05:12 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-09 14:06:24 (GMT)
commit0837538e461cfdbc5c673d7f2bf64f6631099bdf (patch)
treec271915de7062275ff9f8beb9a0d0a3982ec983e /Source/cmCommonTargetGenerator.h
parentf4875bbdd6cc090f5c79f358c55c8b936c6254fd (diff)
downloadCMake-0837538e461cfdbc5c673d7f2bf64f6631099bdf.zip
CMake-0837538e461cfdbc5c673d7f2bf64f6631099bdf.tar.gz
CMake-0837538e461cfdbc5c673d7f2bf64f6631099bdf.tar.bz2
cmCommonTargetGenerator: Adopt GetFlags method
De-duplicate per-target flag computation in Makefile and Ninja target generators.
Diffstat (limited to 'Source/cmCommonTargetGenerator.h')
-rw-r--r--Source/cmCommonTargetGenerator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmCommonTargetGenerator.h b/Source/cmCommonTargetGenerator.h
index 644d972..5407c61 100644
--- a/Source/cmCommonTargetGenerator.h
+++ b/Source/cmCommonTargetGenerator.h
@@ -74,6 +74,13 @@ protected:
// Return the a string with -F flags on apple
std::string GetFrameworkFlags(std::string const& l);
+
+ virtual void AddIncludeFlags(std::string& flags,
+ std::string const& lang) = 0;
+
+ typedef std::map<std::string, std::string> ByLanguageMap;
+ std::string GetFlags(const std::string &l);
+ ByLanguageMap FlagsByLanguage;
};
#endif