aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-13 19:58:58 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-13 19:59:04 +0100
commitc244361b8ae743bcb326b9a1a168f2fdcab491e8 (patch)
tree0ffe9d11ebe2834546f5c4f916e2038c301bccff /include
parent92f24893a5e2d12d0c32662483117c7032623bf1 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/PkgConfig.hpp3
1 files changed, 2 insertions, 1 deletions
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 <string>
#include <vector>
@@ -12,7 +13,7 @@ namespace sibs
public:
static Result<bool> validatePackageExists(const std::string &name);
static Result<bool> validatePackageVersionAtLeast(const std::string &name, const std::string &version);
- static Result<std::string> getDynamicLibsLinkerFlags(const std::vector<std::string> &libs);
+ static Result<std::string> getDynamicLibsLinkerFlags(const std::vector<Dependency> &libs);
};
}