Skip to content

Commit

Permalink
(#4463) pcre: adding with_stack_for_recursion option
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred-sa authored Feb 12, 2021
1 parent f3cc2b3 commit dc21ddb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes/pcre/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class PCREConan(ConanFile):
"with_zlib": [True, False],
"with_jit": [True, False],
"with_utf": [True, False],
"with_unicode_properties": [True, False]
"with_unicode_properties": [True, False],
"with_stack_for_recursion": [True, False]
}
default_options = {
"shared": False,
Expand All @@ -39,7 +40,8 @@ class PCREConan(ConanFile):
"with_zlib": True,
"with_jit": False,
"with_utf": False,
"with_unicode_properties": False
"with_unicode_properties": False,
"with_stack_for_recursion": True
}

_cmake = None
Expand Down Expand Up @@ -113,6 +115,7 @@ def _configure_cmake(self):
self._cmake.definitions["PCRE_SUPPORT_UNICODE_PROPERTIES"] = self.options.with_unicode_properties
self._cmake.definitions["PCRE_SUPPORT_LIBREADLINE"] = False
self._cmake.definitions["PCRE_SUPPORT_LIBEDIT"] = False
self._cmake.definitions["PCRE_NO_RECURSE"] = not self.options.with_stack_for_recursion
if self.settings.os == "Windows" and self.settings.compiler == "Visual Studio":
self._cmake.definitions["PCRE_STATIC_RUNTIME"] = not self.options.shared and "MT" in self.settings.compiler.runtime
self._cmake.configure(build_folder=self._build_subfolder)
Expand Down

0 comments on commit dc21ddb

Please sign in to comment.