diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2024-02-28 00:15:23 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2024-02-28 10:26:10 (GMT) |
commit | 028f3134e55576ff7879d159568b9a475ebb3626 (patch) | |
tree | 756757da5e426b6c98e89ac1c3720bca66d0c2a7 /Source/cmExportFileGenerator.cxx | |
parent | febe479570e96302bd4041cd1104fb95bc99e66d (diff) | |
download | CMake-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.cxx | 5 |
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"; } |