diff options
Diffstat (limited to 'Source')
-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); |