From 97c43debb4eda088693b71a09d059e58344fd29a Mon Sep 17 00:00:00 2001 From: Erik Ogenvik Date: Mon, 14 Aug 2023 20:05:25 +0200 Subject: [PATCH] Enable regexp through PCRE. --- cegui/conanfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cegui/conanfile.py b/cegui/conanfile.py index 1f92789..217b2f4 100644 --- a/cegui/conanfile.py +++ b/cegui/conanfile.py @@ -38,6 +38,7 @@ class CeguiConan(ConanFile): def requirements(self): self.requires("freetype/2.13.0") + self.requires("pcre/8.45") def generate(self): tc = CMakeToolchain(self) @@ -47,7 +48,7 @@ def generate(self): tc.variables['CEGUI_BUILD_LUA_MODULE'] = False tc.variables['CEGUI_BUILD_APPLICATION_TEMPLATES'] = False tc.variables['CEGUI_HAS_FREETYPE'] = True - tc.variables['CEGUI_HAS_PCRE_REGEX'] = False + tc.variables['CEGUI_HAS_PCRE_REGEX'] = True tc.variables['CEGUI_BUILD_IMAGECODEC_FREEIMAGE'] = 'OFF' tc.variables['CEGUI_BUILD_IMAGECODEC_SDL2'] = 'OFF' tc.variables['CEGUI_BUILD_IMAGECODEC_STB'] = 'ON' @@ -101,6 +102,8 @@ def build(self): replace_in_file(self, "{0}/CMakeLists.txt".format(self.folders.source_folder), "find_package(Freetype)", "find_package(Freetype CONFIG REQUIRED)\nlink_libraries(Freetype::Freetype)") + replace_in_file(self, "{0}/CMakeLists.txt".format(self.folders.source_folder), "find_package(PCRE)", + "find_package(PCRE CONFIG REQUIRED)\nlink_libraries(pcre::pcre)") replace_in_file(self, "{0}/CMakeLists.txt".format(self.folders.source_folder), "find_package(GTK2 COMPONENTS gtk)", "#find_package(GTK2 COMPONENTS gtk)")