Merge topic 'cxxmodules-no-export-basedirs-as-include-paths'

65bd837786 Merge branch 'backport-3.28-cxxmodules-no-export-basedirs-as-include-paths'
028f3134e5 cmExportFileGenerator: only export include paths for HEADERS file sets

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9295
This commit is contained in:
Brad King
2024-02-29 13:02:01 +00:00
committed by Kitware Robot
8 changed files with 151 additions and 1 deletions
+4 -1
View File
@@ -11,6 +11,7 @@
#include <cm/memory>
#include <cm/optional>
#include <cm/string_view>
#include <cmext/string_view>
#include "cmsys/FStream.hxx"
@@ -1578,7 +1579,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";
}