diff options
author | Roland Reichwein <mail@reichwein.it> | 2024-06-11 17:15:19 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2024-06-11 17:15:19 +0200 |
commit | d9e360bb95d4fced4974bb716f993c81626417cb (patch) | |
tree | 0b4d9665c4b6b2be05fddaa0e80a094222a0aac3 /Builder.cpp | |
parent | 2be709d1013cfc1beafd90b6e1dbb06ba6339580 (diff) |
bugfix: external lib linking
Diffstat (limited to 'Builder.cpp')
-rw-r--r-- | Builder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Builder.cpp b/Builder.cpp index 6fd4f3c..69ecf48 100644 --- a/Builder.cpp +++ b/Builder.cpp @@ -302,7 +302,7 @@ std::unordered_map<fs::path, std::vector<fs::path>> Builder::get_dependencies(co fs::path target{get_target(list)}; std::vector<fs::path> deps{get_objects(list)}; std::vector<fs::path> link_libs{link_libs_of(target)}; - std::copy(link_libs.begin(), link_libs.end(), std::back_inserter(deps)); + std::copy_if(link_libs.begin(), link_libs.end(), std::back_inserter(deps), [](const fs::path& p){ return !is_external_lib(p);}); dependencies.emplace(target, deps); // add dynamic lib links |