mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
cmExportFileGenerator: only export include paths for HEADERS file sets
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user