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

Commit

Permalink
Merge pull request #9 from madebr/stable/8.41
Browse files Browse the repository at this point in the history
Set PCRE_STATIC=1 in package_info
  • Loading branch information
SSE4 committed Mar 8, 2019
2 parents 8221ba3 + 3118043 commit 8ac5b4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,5 @@ def package_info(self):
self.cpp_info.libs = ['pcreposixd', 'pcred']
else:
self.cpp_info.libs = ['pcreposix', 'pcre']
if not self.options.shared:
self.cpp_info.defines.append("PCRE_STATIC=1")
2 changes: 0 additions & 2 deletions test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class TestPackageConan(ConanFile):

def build(self):
cmake = CMake(self)
if self.settings.os == "Windows" and not self.options['pcre'].shared:
cmake.definitions['PCRE_STATIC'] = True
cmake.configure()
cmake.build()

Expand Down

0 comments on commit 8ac5b4b

Please sign in to comment.