diff options
author | Brad King <brad.king@kitware.com> | 2021-12-15 15:50:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-12-15 17:29:44 (GMT) |
commit | a84a62e0a748c05f1779c4cd1e022df7d27e0db8 (patch) | |
tree | 4b8e6133eb43b6ede88e40b466f18c115f13f9c7 /Source/cmExportTryCompileFileGenerator.cxx | |
parent | 029c8f50652415baf4aa3dd96c9a8dc9626ae4ec (diff) | |
download | CMake-a84a62e0a748c05f1779c4cd1e022df7d27e0db8.zip CMake-a84a62e0a748c05f1779c4cd1e022df7d27e0db8.tar.gz CMake-a84a62e0a748c05f1779c4cd1e022df7d27e0db8.tar.bz2 |
cmTarget: Record backtraces for INTERFACE_LINK_LIBRARIES
Diffstat (limited to 'Source/cmExportTryCompileFileGenerator.cxx')
-rw-r--r-- | Source/cmExportTryCompileFileGenerator.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmExportTryCompileFileGenerator.cxx b/Source/cmExportTryCompileFileGenerator.cxx index 4fe92c6..db9b05b 100644 --- a/Source/cmExportTryCompileFileGenerator.cxx +++ b/Source/cmExportTryCompileFileGenerator.cxx @@ -107,10 +107,16 @@ void cmExportTryCompileFileGenerator::PopulateProperties( const cmGeneratorTarget* target, ImportPropertyMap& properties, std::set<cmGeneratorTarget const*>& emitted) { + // Look through all non-special properties. std::vector<std::string> props = target->GetPropertyKeys(); + // Include special properties that might be relevant here. + props.emplace_back("INTERFACE_LINK_LIBRARIES"); for (std::string const& p : props) { - - properties[p] = *target->GetProperty(p); + cmValue v = target->GetProperty(p); + if (!v) { + continue; + } + properties[p] = *v; if (cmHasLiteralPrefix(p, "IMPORTED_LINK_INTERFACE_LIBRARIES") || cmHasLiteralPrefix(p, "IMPORTED_LINK_DEPENDENT_LIBRARIES") || |