mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
Merge topic 'cxxmodules-no-export-basedirs-as-include-paths'
65bd837786Merge branch 'backport-3.28-cxxmodules-no-export-basedirs-as-include-paths'028f3134e5cmExportFileGenerator: 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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user