From 73dba271450e86e0134ac9d99d6c134188e9cdc4 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Tue, 29 Apr 2025 15:14:50 +0800 Subject: [PATCH] Fix building without TTS (#2159) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fc76284..48960b86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -393,9 +393,10 @@ if(SHERPA_ONNX_ENABLE_TTS) set(ESPEAK_NG_DIR ${espeak_ng_SOURCE_DIR}) message(STATUS "ESPEAK_NG_DIR: ${ESPEAK_NG_DIR}") include(piper-phonemize) - include(cppjieba) # For Chinese TTS. It is a header-only C++ library endif() +include(cppjieba) # It is a header-only C++ library + if(SHERPA_ONNX_ENABLE_SPEAKER_DIARIZATION) include(hclust-cpp) endif()