Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
Fix link order
Browse files Browse the repository at this point in the history
The libpcreposix library uses libpcre, so libpcre must come last (at
least for static linking).
  • Loading branch information
msteinert committed Aug 23, 2018
1 parent 43fd193 commit 1911829
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,7 @@ def package(self):
cmake.install()

def package_info(self):
self.cpp_info.libs = tools.collect_libs(self)
if self.settings.os == "Windows" and self.settings.build_type == 'Debug':
self.cpp_info.libs = ['pcreposixd', 'pcred']
else:
self.cpp_info.libs = ['pcreposix', 'pcre']

0 comments on commit 1911829

Please sign in to comment.