Commit 20e31fb4 authored by Michael Stürmer's avatar Michael Stürmer
Browse files

cmExportFileGenerator: add target property for managed targets

parent 411a2270
......@@ -777,6 +777,20 @@ void cmExportFileGenerator::SetImportDetailProperties(
properties[prop] = m.str();
}
}
// Add information if this target is a managed target
if (target->GetManagedType(config) !=
cmGeneratorTarget::ManagedType::Native) {
std::string prop = "IMPORTED_COMMON_LANGUAGE_RUNTIME";
prop += suffix;
std::string propval;
if (auto* p = target->GetProperty("COMMON_LANGUAGE_RUNTIME")) {
propval = p;
}
// TODO: make sure propval is set to non-empty string for
// CSharp targets (i.e. force ManagedType::Managed).
properties[prop] = propval;
}
}
template <typename T>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment