From dc21ddbfa60ca97806262f86fa6508575aa10d9f Mon Sep 17 00:00:00 2001 From: as Date: Fri, 12 Feb 2021 16:01:36 +0100 Subject: [PATCH] (#4463) pcre: adding with_stack_for_recursion option --- recipes/pcre/all/conanfile.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/recipes/pcre/all/conanfile.py b/recipes/pcre/all/conanfile.py index d6eb7e4017d04..488f5e7ee907f 100644 --- a/recipes/pcre/all/conanfile.py +++ b/recipes/pcre/all/conanfile.py @@ -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, @@ -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 @@ -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)