diff options
author | Brad King <brad.king@kitware.com> | 2015-07-08 18:49:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-09 13:50:06 (GMT) |
commit | beee79373222ea01008cd137dd9a3ffa59cbe347 (patch) | |
tree | e08f7d3f05b9ebeea6a945eead2eeb47be2480c6 /Source/cmCommonTargetGenerator.h | |
parent | abfa5f2d1fac0a55b430e078884ad1ae252d20cd (diff) | |
download | CMake-beee79373222ea01008cd137dd9a3ffa59cbe347.zip CMake-beee79373222ea01008cd137dd9a3ffa59cbe347.tar.gz CMake-beee79373222ea01008cd137dd9a3ffa59cbe347.tar.bz2 |
cmCommonTargetGenerator: Adopt GetFeature and friends
De-duplicate the GetFeature, GetFeatureAsBool, and AddFeatureFlags
members from the Makefile and Ninja target generators.
Diffstat (limited to 'Source/cmCommonTargetGenerator.h')
-rw-r--r-- | Source/cmCommonTargetGenerator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmCommonTargetGenerator.h b/Source/cmCommonTargetGenerator.h index bf2add3..25d19a0 100644 --- a/Source/cmCommonTargetGenerator.h +++ b/Source/cmCommonTargetGenerator.h @@ -32,6 +32,14 @@ public: std::string const& GetConfigName() const; protected: + + // Add language feature flags. + void AddFeatureFlags(std::string& flags, const std::string& lang); + + // Feature query methods. + const char* GetFeature(const std::string& feature); + bool GetFeatureAsBool(const std::string& feature); + cmGeneratorTarget* GeneratorTarget; cmTarget* Target; cmMakefile* Makefile; |