From c244361b8ae743bcb326b9a1a168f2fdcab491e8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 13 Dec 2017 19:58:58 +0100 Subject: Change linking order for pkg-config Linking should be added in the order of dependencies. Modified linking logic to check global lib dir if pkg-config fails (missing package, pkg-config is not installed or any other reason), also required for Windows. --- include/PkgConfig.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/PkgConfig.hpp') diff --git a/include/PkgConfig.hpp b/include/PkgConfig.hpp index 4bafa18..2af4ac9 100644 --- a/include/PkgConfig.hpp +++ b/include/PkgConfig.hpp @@ -2,6 +2,7 @@ #define SIBS_PKGCONFIG_HPP #include "Result.hpp" +#include "Dependency.hpp" #include #include @@ -12,7 +13,7 @@ namespace sibs public: static Result validatePackageExists(const std::string &name); static Result validatePackageVersionAtLeast(const std::string &name, const std::string &version); - static Result getDynamicLibsLinkerFlags(const std::vector &libs); + static Result getDynamicLibsLinkerFlags(const std::vector &libs); }; } -- cgit v1.2.3