Skip to content

Commit

Permalink
Fix header only libraries link deps not showing up in interface setti…
Browse files Browse the repository at this point in the history
…ngs.
  • Loading branch information
egorpugin committed Sep 22, 2023
1 parent 185d8bf commit 4da8998
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/sw/driver/target/native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2189,8 +2189,16 @@ const TargetSettings &NativeCompiledTarget::getInterfaceSettings() const
continue;
if (auto t = d.dep->getTarget().as<const NativeCompiledTarget *>())
{
if (!t->DryRun/* && t->getType() != TargetType::NativeExecutable*/)
s["dependencies"]["link"][boost::to_lower_copy(d.dep->getTarget().getPackage().toString())] = d.dep->getTarget().getSettings();
if (!t->DryRun/* && t->getType() != TargetType::NativeExecutable*/) {
if (*t->HeaderOnly) {
auto &&is = t->getInterfaceSettings();
for (auto &&[t,s2] : is["dependencies"]["link"].getMap()) {
s["dependencies"]["link"][t] = s2;
}
} else {
s["dependencies"]["link"][boost::to_lower_copy(d.dep->getTarget().getPackage().toString())] = d.dep->getTarget().getSettings();
}
}
}
else
continue;
Expand Down

0 comments on commit 4da8998

Please sign in to comment.