diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-17 13:08:13 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-18 14:29:30 (GMT) |
commit | eb3be7d68851ce87354f6bd90e0be3a670d22d56 (patch) | |
tree | dbee37acd61d0d9eabf4f391368abbcdc8995e9c /Source/cmExportFileGenerator.cxx | |
parent | d231c31b98eb80929d9aabf8e606abde39fc08f4 (diff) | |
download | CMake-eb3be7d68851ce87354f6bd90e0be3a670d22d56.zip CMake-eb3be7d68851ce87354f6bd90e0be3a670d22d56.tar.gz CMake-eb3be7d68851ce87354f6bd90e0be3a670d22d56.tar.bz2 |
cmGeneratorTarget: Move GetExportName from cmTarget.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index 1c3e9fe..3e58400 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -18,7 +18,6 @@ #include "cmLocalGenerator.h" #include "cmMakefile.h" #include "cmSystemTools.h" -#include "cmTarget.h" #include "cmTargetExport.h" #include "cmVersion.h" #include "cmComputeLinkInformation.h" @@ -623,7 +622,7 @@ void cmExportFileGenerator::GenerateInterfaceProperties( if (!properties.empty()) { std::string targetName = this->Namespace; - targetName += target->Target->GetExportName(); + targetName += target->GetExportName(); os << "set_target_properties(" << targetName << " PROPERTIES\n"; for(ImportPropertyMap::const_iterator pi = properties.begin(); pi != properties.end(); ++pi) @@ -655,7 +654,7 @@ cmExportFileGenerator::AddTargetNamespace(std::string &input, } if(this->ExportedTargets.find(tgt) != this->ExportedTargets.end()) { - input = this->Namespace + tgt->Target->GetExportName(); + input = this->Namespace + tgt->GetExportName(); } else { @@ -1047,7 +1046,7 @@ cmExportFileGenerator // Construct the imported target name. std::string targetName = this->Namespace; - targetName += target->Target->GetExportName(); + targetName += target->GetExportName(); // Create the imported target. os << "# Create imported target " << targetName << "\n"; @@ -1114,7 +1113,7 @@ cmExportFileGenerator // Construct the imported target name. std::string targetName = this->Namespace; - targetName += target->Target->GetExportName(); + targetName += target->GetExportName(); // Set the import properties. os << "# Import target \"" << targetName << "\" for configuration \"" @@ -1234,7 +1233,7 @@ cmExportFileGenerator { // Construct the imported target name. std::string targetName = this->Namespace; - targetName += target->Target->GetExportName(); + targetName += target->GetExportName(); os << "list(APPEND _IMPORT_CHECK_TARGETS " << targetName << " )\n" "list(APPEND _IMPORT_CHECK_FILES_FOR_" << targetName << " "; |