summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenGlobalInitializer.cxx
diff options
context:
space:
mode:
authorAlessandro Ambrosano <alessandro.ambrosano@gmail.com>2020-11-12 17:22:05 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-11 16:37:11 (GMT)
commitf65f20938c4f9d202f443fed2f8307ab43151820 (patch)
tree11c9a7eaf51dc754c4e5d8f31e99f440c94743f7 /Source/cmQtAutoGenGlobalInitializer.cxx
parentadc6a4c5402658b8218a591639b652604893b919 (diff)
downloadCMake-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.cxx7
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);