From: Mikko Rasa Date: Fri, 5 Jan 2024 14:55:12 +0000 (+0200) Subject: Make import libraries transitively depend on the shared library X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=fae0fbbfea54670f2ed2eabe361f5b25216ec7ff;p=builder.git Make import libraries transitively depend on the shared library This ensures the shared libraries are installed when a program is built. --- diff --git a/source/lib/importlibrary.cpp b/source/lib/importlibrary.cpp index 8fa42f7..f488186 100644 --- a/source/lib/importlibrary.cpp +++ b/source/lib/importlibrary.cpp @@ -18,6 +18,8 @@ ImportLibrary::ImportLibrary(Builder &b, const Component &c, SharedLibrary &sl): shared_lib->set_import_library(this); install_location = "lib"; + + add_transitive_dependency(*shared_lib); } string ImportLibrary::generate_filename(const Component &comp, const SharedLibrary &sl)