diff options
author | Brad King <brad.king@kitware.com> | 2020-10-27 12:20:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-10-27 12:20:55 (GMT) |
commit | c300355aab387be11c2b7487ea2505e1d81c1831 (patch) | |
tree | 5588bae5c339d4fec879392def764fc58b37c932 /Source/cmGeneratorTarget.cxx | |
parent | dbb957a5dc0a6d2af843079a37f7be9be87221b1 (diff) | |
parent | dd77dec18d66a2e20480d9bf2ab06231765720a4 (diff) | |
download | CMake-c300355aab387be11c2b7487ea2505e1d81c1831.zip CMake-c300355aab387be11c2b7487ea2505e1d81c1831.tar.gz CMake-c300355aab387be11c2b7487ea2505e1d81c1831.tar.bz2 |
Merge topic 'cuda_vs_skip_computation'
dd77dec18d VS: Don't compute CUDA options unless necessary
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5422
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index fcfcc53..01d9bec 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -7245,6 +7245,14 @@ void cmGeneratorTarget::GetLanguages(std::set<std::string>& languages, } } +bool cmGeneratorTarget::IsLanguageUsed(std::string const& language, + std::string const& config) const +{ + std::set<std::string> languages; + this->GetLanguages(languages, config); + return languages.count(language); +} + bool cmGeneratorTarget::IsCSharpOnly() const { // Only certain target types may compile CSharp. |