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 /file.cpp | |
parent | 2be709d1013cfc1beafd90b6e1dbb06ba6339580 (diff) |
bugfix: external lib linking
Diffstat (limited to 'file.cpp')
-rw-r--r-- | file.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -117,6 +117,11 @@ bool is_static_lib(const std::filesystem::path& p) return p.extension() == ".a"; } +bool is_external_lib(const std::filesystem::path& p) +{ + return !(is_static_lib(p) || is_dynamic_lib(p) || is_dynamic_lib_link(p)); +} + std::filesystem::path simplified_path(const std::filesystem::path& p) { if (p.string().substr(0, 2) == "./") { |