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

Commit

Permalink
Add with_utf option
Browse files Browse the repository at this point in the history
- Enable ability to build with UTF support.
  • Loading branch information
datalogics-kam committed Mar 5, 2019
1 parent db3ff9e commit 1045fbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ class PCREConan(ConanFile):
"with_zlib": [True, False],
"with_jit": [True, False],
"build_pcrecpp": [True, False],
"build_pcregrep": [True, False]
"build_pcregrep": [True, False],
"with_utf": [True, False]
}
default_options = ("shared=False", "fPIC=True", "with_bzip2=True",
"with_zlib=True", "with_jit=False", "build_pcrecpp=False",
"build_pcregrep=False")
"build_pcregrep=False", "with_utf=False")
source_subfolder = "source_subfolder"
build_subfolder = "build_subfolder"

Expand Down Expand Up @@ -70,6 +71,7 @@ def configure_cmake(self):
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_UTF"] = self.options.with_utf
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 1045fbb

Please sign in to comment.