summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-29 13:02:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-02-29 13:02:29 (GMT)
commit9c69bd8d4244f17fb63ed944d9555e2ec7794d9f (patch)
tree5eca70fddcff3c07149d7794c10eb02ee0329139 /Source/cmExportFileGenerator.cxx
parent22b4be27f22ff6c7dd21e02fec0ce1b09f97c1b1 (diff)
parent65bd83778687948a6a99ec86c8dcd48ca1e073b3 (diff)
downloadCMake-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.cxx5
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";
}