From 458176c0501880e3f308cf90bfc8b8fb7e9504c6 Mon Sep 17 00:00:00 2001 From: Abhishek Aggarwal Date: Mon, 22 Feb 2021 18:51:48 +0100 Subject: [PATCH] Enable building pcre2 from sources for ssplit submodule - USE_INTERNAL_PCRE2 is set to ON - Sentence splitting is working (tested it via wasm test page) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb027b780..aed7c81ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,8 @@ if(COMPILE_WASM) # Set WORMHOLE to ON for marian whenever compiling for wasm platform SET(WORMHOLE ON CACHE BOOL "Use WASM wormhole in intgemm https://bugzilla.mozilla.org/show_bug.cgi?id=1672160") endif() +# Set ssplit (3rd party submodule) cmake options to compile for this project +SET(USE_INTERNAL_PCRE2 ON CACHE BOOL "Use internal PCRE2 instead of system PCRE2") # Documentation: https://cliutils.gitlab.io/modern-cmake/chapters/projects/submodule.html # Ensures the submodules are set correctly during a build.