diff options
author | Alessandro Ambrosano <alessandro.ambrosano@gmail.com> | 2020-11-12 17:22:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-11 16:37:11 (GMT) |
commit | f65f20938c4f9d202f443fed2f8307ab43151820 (patch) | |
tree | 11c9a7eaf51dc754c4e5d8f31e99f440c94743f7 /Source/cmQtAutoGenGlobalInitializer.cxx | |
parent | adc6a4c5402658b8218a591639b652604893b919 (diff) | |
download | CMake-f65f20938c4f9d202f443fed2f8307ab43151820.zip CMake-f65f20938c4f9d202f443fed2f8307ab43151820.tar.gz CMake-f65f20938c4f9d202f443fed2f8307ab43151820.tar.bz2 |
Autogen: Avoid processing CSharp targets
Fixes: #21442
Diffstat (limited to 'Source/cmQtAutoGenGlobalInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGenGlobalInitializer.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenGlobalInitializer.cxx b/Source/cmQtAutoGenGlobalInitializer.cxx index fac2bbf..ff6fcd0 100644 --- a/Source/cmQtAutoGenGlobalInitializer.cxx +++ b/Source/cmQtAutoGenGlobalInitializer.cxx @@ -2,6 +2,7 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmQtAutoGenGlobalInitializer.h" +#include <set> #include <utility> #include <cm/memory> @@ -91,6 +92,12 @@ cmQtAutoGenGlobalInitializer::cmQtAutoGenGlobalInitializer( // Don't process target continue; } + std::set<std::string> const& languages = + target->GetAllConfigCompileLanguages(); + if (languages.count("CSharp")) { + // Don't process target if it's a CSharp target + continue; + } bool const moc = target->GetPropertyAsBool(kw().AUTOMOC); bool const uic = target->GetPropertyAsBool(kw().AUTOUIC); |