diff options
author | Brad King <brad.king@kitware.com> | 2024-02-28 14:20:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-02-28 14:20:15 (GMT) |
commit | 65bd83778687948a6a99ec86c8dcd48ca1e073b3 (patch) | |
tree | d6ae335ee94956bba5a5a8ca1be49b36326f1168 /Source/cmExportFileGenerator.cxx | |
parent | 5ac83689222d3158f1a6e32259096b80ebe89166 (diff) | |
parent | 028f3134e55576ff7879d159568b9a475ebb3626 (diff) | |
download | CMake-65bd83778687948a6a99ec86c8dcd48ca1e073b3.zip CMake-65bd83778687948a6a99ec86c8dcd48ca1e073b3.tar.gz CMake-65bd83778687948a6a99ec86c8dcd48ca1e073b3.tar.bz2 |
Merge branch 'backport-3.28-cxxmodules-no-export-basedirs-as-include-paths'
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index 21f7639..37af5f0 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -11,6 +11,7 @@ #include <cm/memory> #include <cm/optional> +#include <cm/string_view> #include <cmext/string_view> #include "cmsys/FStream.hxx" @@ -1577,7 +1578,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"; } |