diff options
author | Brad King <brad.king@kitware.com> | 2019-10-16 16:03:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-16 16:48:20 (GMT) |
commit | 0e436c573c52add744f0ff7c8845be9c7ff381a0 (patch) | |
tree | 1182550d8325eb9d822dd54763673e2d26e5737b /Source/cmExportFileGenerator.h | |
parent | 9150c818b7d2afb868575fcb2e0c9ba62b9d7f85 (diff) | |
download | CMake-0e436c573c52add744f0ff7c8845be9c7ff381a0.zip CMake-0e436c573c52add744f0ff7c8845be9c7ff381a0.tar.gz CMake-0e436c573c52add744f0ff7c8845be9c7ff381a0.tar.bz2 |
install,export: Do not treat language names as target names
When generating `IMPORTED_LINK_INTERFACE_LANGUAGES`, do not treat the
entries as target names.
Fixes: #19846
Diffstat (limited to 'Source/cmExportFileGenerator.h')
-rw-r--r-- | Source/cmExportFileGenerator.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.h b/Source/cmExportFileGenerator.h index b04a31e..0d69779 100644 --- a/Source/cmExportFileGenerator.h +++ b/Source/cmExportFileGenerator.h @@ -102,13 +102,19 @@ protected: ImportPropertyMap& properties, std::vector<std::string>& missingTargets); + enum class ImportLinkPropertyTargetNames + { + Yes, + No, + }; template <typename T> void SetImportLinkProperty(std::string const& suffix, cmGeneratorTarget* target, const std::string& propName, std::vector<T> const& entries, ImportPropertyMap& properties, - std::vector<std::string>& missingTargets); + std::vector<std::string>& missingTargets, + ImportLinkPropertyTargetNames targetNames); /** Each subclass knows how to generate its kind of export file. */ virtual bool GenerateMainFile(std::ostream& os) = 0; |