diff options
author | Brad King <brad.king@kitware.com> | 2022-07-28 12:11:51 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-07-28 12:12:09 (GMT) |
commit | 12830cc2a9a62470bcca9e06ced3ee8b370a2bd5 (patch) | |
tree | 7eeb9e2b901c0e58e73cb62e4de6cd7c39db8414 /Source/cmGeneratorTarget.cxx | |
parent | 75647fc53dace97d4dd03f8d5a1abfb995b4558d (diff) | |
parent | 41f15193e5adfaaf9990b2d8d81bb0ec6c05572c (diff) | |
download | CMake-12830cc2a9a62470bcca9e06ced3ee8b370a2bd5.zip CMake-12830cc2a9a62470bcca9e06ced3ee8b370a2bd5.tar.gz CMake-12830cc2a9a62470bcca9e06ced3ee8b370a2bd5.tar.bz2 |
Merge topic 'verify-interface-header-sets-interface-library-source-language' into release-3.24
41f15193e5 VERIFY_INTERFACE_HEADER_SETS: Fall back to global languages
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7517
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 729e534..3bb8671 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -8668,6 +8668,12 @@ std::string cmGeneratorTarget::GenerateHeaderSetVerificationFile( languages->insert("C"); } } + + if (languages->empty()) { + std::vector<std::string> languagesVector; + this->GlobalGenerator->GetEnabledLanguages(languagesVector); + languages->insert(languagesVector.begin(), languagesVector.end()); + } } if (languages->count("CXX")) { |