summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-11 14:12:05 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-11 14:12:05 (GMT)
commitf888a0efafafeb20753fa250deb2675bb627c595 (patch)
tree998743f0187669e17cdd098f709eba79e0862fe4 /Source/cmExportFileGenerator.cxx
parent3621e073a88433af4408a8d7d58974b4e8254b54 (diff)
downloadCMake-f888a0efafafeb20753fa250deb2675bb627c595.zip
CMake-f888a0efafafeb20753fa250deb2675bb627c595.tar.gz
CMake-f888a0efafafeb20753fa250deb2675bb627c595.tar.bz2
ENH: Export and import link interface languages
Now that languages are part of the link interface of a target we need to export/import the information. A new IMPORTED_LINK_INTERFACE_LANGUAGES property and per-config IMPORTED_LINK_INTERFACE_LANGUAGES_<CONFIG> property specify the information for imported targets. The export() and install(EXPORT) commands automatically set the properties.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r--Source/cmExportFileGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index 9c603c1..8c15a26 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -153,6 +153,9 @@ cmExportFileGenerator
if(cmTarget::LinkInterface const* iface = target->GetLinkInterface(config))
{
this->SetImportLinkProperty(suffix, target,
+ "IMPORTED_LINK_INTERFACE_LANGUAGES",
+ iface->Languages, properties);
+ this->SetImportLinkProperty(suffix, target,
"IMPORTED_LINK_INTERFACE_LIBRARIES",
iface->Libraries, properties);
this->SetImportLinkProperty(suffix, target,