|
|
@@ -187,6 +187,13 @@ void cmGlobalGenerator::AddBuildExportSet(cmExportBuildFileGenerator* gen)
|
|
|
this->BuildExportSets[gen->GetMainExportFileName()] = gen;
|
|
|
}
|
|
|
|
|
|
+void
|
|
|
+cmGlobalGenerator::AddBuildExportExportSet(cmExportBuildFileGenerator* gen)
|
|
|
+{
|
|
|
+ this->BuildExportSets[gen->GetMainExportFileName()] = gen;
|
|
|
+ this->BuildExportExportSets[gen->GetMainExportFileName()] = gen;
|
|
|
+}
|
|
|
+
|
|
|
bool cmGlobalGenerator::GenerateImportFile(const std::string &file)
|
|
|
{
|
|
|
std::map<std::string, cmExportBuildFileGenerator*>::iterator it
|
|
|
@@ -207,7 +214,12 @@ cmGlobalGenerator::IsExportedTargetsFile(const std::string &filename) const
|
|
|
{
|
|
|
const std::map<std::string, cmExportBuildFileGenerator*>::const_iterator it
|
|
|
= this->BuildExportSets.find(filename);
|
|
|
- return it != this->BuildExportSets.end();
|
|
|
+ if (it == this->BuildExportSets.end())
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return this->BuildExportExportSets.find(filename)
|
|
|
+ == this->BuildExportExportSets.end();
|
|
|
}
|
|
|
|
|
|
// Find the make program for the generator, required for try compiles
|