diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-03-19 20:09:21 (GMT) |
---|---|---|
committer | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-04-05 04:36:52 (GMT) |
commit | 20e31fb4c9e1954dfac5b06d3717e517beda8e0a (patch) | |
tree | c2075500e08c5a9a592cce6207682b7c5042acac /Source | |
parent | 411a22706a60fa4fe75a1a4baac84161fa72e833 (diff) | |
download | CMake-20e31fb4c9e1954dfac5b06d3717e517beda8e0a.zip CMake-20e31fb4c9e1954dfac5b06d3717e517beda8e0a.tar.gz CMake-20e31fb4c9e1954dfac5b06d3717e517beda8e0a.tar.bz2 |
cmExportFileGenerator: add target property for managed targets
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index 2dcbfa0..8894d44 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -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> |