summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-02-28 00:15:23 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2024-02-28 10:26:10 (GMT)
commit028f3134e55576ff7879d159568b9a475ebb3626 (patch)
tree756757da5e426b6c98e89ac1c3720bca66d0c2a7 /Source/cmExportFileGenerator.cxx
parentfebe479570e96302bd4041cd1104fb95bc99e66d (diff)
downloadCMake-028f3134e55576ff7879d159568b9a475ebb3626.zip
CMake-028f3134e55576ff7879d159568b9a475ebb3626.tar.gz
CMake-028f3134e55576ff7879d159568b9a475ebb3626.tar.bz2
cmExportFileGenerator: only export include paths for HEADERS file sets
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 64448f1..944e703 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -9,6 +9,7 @@
#include <utility>
#include <cm/memory>
+#include <cm/string_view>
#include <cmext/string_view>
#include "cmsys/FStream.hxx"
@@ -1451,7 +1452,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";
}