From 70d90003174e19ccc523285800611c8c607e347e Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 27 Nov 2023 22:22:38 +0800 Subject: [PATCH] Compile speech player conditionally --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c918cf17..7d24ffb2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,7 +2,9 @@ add_library(espeak-include INTERFACE) target_include_directories(espeak-include INTERFACE include include/compat) add_subdirectory(ucd-tools) -add_subdirectory(speechPlayer) +if(USE_SPEECHPLAYER) + add_subdirectory(speechPlayer) +endif() add_subdirectory(libespeak-ng) if(BUILD_ESPEAK_NG_EXE)