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)
This commit is contained in:
Abhishek Aggarwal 2021-02-22 18:51:48 +01:00
parent 462a850d8a
commit 458176c050

View File

@ -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.