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

Commit

Permalink
Add option to enable JIT support
Browse files Browse the repository at this point in the history
  • Loading branch information
msteinert committed Nov 16, 2018
1 parent 996adaa commit 2dfd427
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ class PCREConan(ConanFile):
"fPIC": [True, False],
"with_bzip2": [True, False],
"with_zlib": [True, False],
"with_jit": [True, False],
"build_pcrecpp": [True, False],
"build_pcregrep": [True, False]
}
default_options = ("shared=False", "fPIC=True", "with_bzip2=True",
"with_zlib=True", "build_pcrecpp=False",
"with_zlib=True", "with_jit=False", "build_pcrecpp=False",
"build_pcregrep=False")
source_subfolder = "source_subfolder"
build_subfolder = "build_subfolder"
Expand Down Expand Up @@ -68,6 +69,7 @@ def configure_cmake(self):
cmake.definitions["PCRE_BUILD_PCRECPP"] = self.options.build_pcrecpp
cmake.definitions["PCRE_SUPPORT_LIBZ"] = self.options.with_zlib
cmake.definitions["PCRE_SUPPORT_LIBBZ2"] = self.options.with_bzip2
cmake.definitions["PCRE_SUPPORT_JIT"] = self.options.with_jit
cmake.definitions["PCRE_SUPPORT_LIBREADLINE"] = False
cmake.definitions["PCRE_SUPPORT_LIBEDIT"] = False
if self.settings.os == "Windows" and self.settings.compiler == "Visual Studio":
Expand Down

0 comments on commit 2dfd427

Please sign in to comment.