Skip to content
Snippets Groups Projects
Commit f65f2093 authored by Alessandro Ambrosano's avatar Alessandro Ambrosano Committed by Brad King
Browse files

Autogen: Avoid processing CSharp targets

Fixes: #21442
parent adc6a4c5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment