From 02eab549a38a27cf85429b82292ca78b11306bae Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 8 Jul 2024 16:00:35 +0800 Subject: [PATCH] Fix windows build (#1091) --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24c3561f..bb5cc8c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -263,7 +263,9 @@ include(simple-sentencepiece) set(ONNXRUNTIME_DIR ${onnxruntime_SOURCE_DIR}) message(STATUS "ONNXRUNTIME_DIR: ${ONNXRUNTIME_DIR}") -if(SHERPA_ONNX_ENABLE_PORTAUDIO) +if(SHERPA_ONNX_ENABLE_PORTAUDIO AND SHERPA_ONNX_ENABLE_BINARY) + # portaudio is used only in building demo binaries and the sherpa-onnx-core + # library does not depend on it. include(portaudio) endif()