diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-03-19 20:08:38 (GMT) |
---|---|---|
committer | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-04-05 04:35:01 (GMT) |
commit | 6c517a9f8d73662f0d3555963d72abcb844585d3 (patch) | |
tree | 400d9071e143d839ebc0d344b1f67d45e5371adf /Source/cmGeneratorTarget.h | |
parent | 3201e4c156fcf79a7c29a73430e72b1bcd43cedc (diff) | |
download | CMake-6c517a9f8d73662f0d3555963d72abcb844585d3.zip CMake-6c517a9f8d73662f0d3555963d72abcb844585d3.tar.gz CMake-6c517a9f8d73662f0d3555963d72abcb844585d3.tar.bz2 |
cmGeneratorTarget: add HasLanguage() as wrapper for GetLanguages()
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r-- | Source/cmGeneratorTarget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index 2f6ce33..f0c7cee 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -364,6 +364,12 @@ public: void GetLanguages(std::set<std::string>& languages, std::string const& config) const; + // Evaluate if the target uses the given language for compilation + // and/or linking. If 'exclusive' is true, 'language' is expected + // to be the only language used for the target. + bool HasLanguage(std::string const& language, std::string const& config, + bool exclusive = true) const; + void GetObjectLibrariesCMP0026( std::vector<cmGeneratorTarget*>& objlibs) const; |