diff options
author | Brad King <brad.king@kitware.com> | 2024-02-29 13:02:01 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-02-29 13:02:29 (GMT) |
commit | 9c69bd8d4244f17fb63ed944d9555e2ec7794d9f (patch) | |
tree | 5eca70fddcff3c07149d7794c10eb02ee0329139 /Source/cmExportFileGenerator.cxx | |
parent | 22b4be27f22ff6c7dd21e02fec0ce1b09f97c1b1 (diff) | |
parent | 65bd83778687948a6a99ec86c8dcd48ca1e073b3 (diff) | |
download | CMake-9c69bd8d4244f17fb63ed944d9555e2ec7794d9f.zip CMake-9c69bd8d4244f17fb63ed944d9555e2ec7794d9f.tar.gz CMake-9c69bd8d4244f17fb63ed944d9555e2ec7794d9f.tar.bz2 |
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
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 772f870..cac9cb2 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" @@ -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"; } |