cmExportFileGenerator: only export include paths for HEADERS file sets

This commit is contained in:
Ben Boeckel
2024-02-27 19:15:23 -05:00
parent febe479570
commit 028f3134e5
8 changed files with 151 additions and 1 deletions
+4 -1
View File
@@ -9,6 +9,7 @@
#include <utility>
#include <cm/memory>
#include <cm/string_view>
#include <cmext/string_view>
#include "cmsys/FStream.hxx"
@@ -1451,7 +1452,9 @@ void cmExportFileGenerator::GenerateTargetFileSets(cmGeneratorTarget* gte,
return;
}
os << "\n " << this->GetFileSetDirectories(gte, fileSet, te);
if (fileSet->GetType() == "HEADERS"_s) {
os << "\n " << this->GetFileSetDirectories(gte, fileSet, te);
}
}
os << "\n )\nendif()\n\n";
}