summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions
this->ExportCommand = 0; } //---------------------------------------------------------------------------- bool cmExportBuildFileGenerator::GenerateMainFile(std::ostream& os) { // Create all the imported targets. for(std::vector<cmTarget*>::const_iterator tei = this->Exports->begin(); tei != this->Exports->end(); ++tei) { cmTarget* te = *tei; if(this->ExportedTargets.insert(te).second) { this->GenerateImportTargetCode(os, te); } else { if(this->ExportCommand && this->ExportCommand->ErrorMessage.empty()) { cmOStringStream e; e << "given target \"" << te->GetName() << "\" more than once."; this->ExportCommand->ErrorMessage = e.str(); } return false; } } // Generate import file content for each configuration. for(std::vector<std::string>::const_iterator ci = this->Configurations.begin(); ci != this->Configurations.end(); ++ci) { this->GenerateImportConfig(os, ci->c_str()); } return true; } //---------------------------------------------------------------------------- void cmExportBuildFileGenerator ::GenerateImportTargetsConfig(std::ostream& os, const char* config, std::string const& suffix) { for(std::vector<cmTarget*>::const_iterator tei = this->Exports->begin(); tei != this->Exports->end(); ++tei) { // Collect import properties for this target. cmTarget* target = *tei; ImportPropertyMap properties; this->SetImportLocationProperty(config, suffix, target, properties); if(!properties.empty()) { // Get the rest of the target details. this->SetImportDetailProperties(config, suffix, target, properties); // TOOD: PUBLIC_HEADER_LOCATION // This should wait until the build feature propagation stuff // is done. Then this can be a propagated include directory. // this->GenerateImportProperty(config, te->HeaderGenerator, // properties); // Generate code in the export file. this->GenerateImportPropertyCode(os, config, target, properties); } } } //---------------------------------------------------------------------------- void cmExportBuildFileGenerator