Fangjun Kuang
Committed by GitHub

Fix windows build (#1091)

@@ -263,7 +263,9 @@ include(simple-sentencepiece) @@ -263,7 +263,9 @@ include(simple-sentencepiece)
263 set(ONNXRUNTIME_DIR ${onnxruntime_SOURCE_DIR}) 263 set(ONNXRUNTIME_DIR ${onnxruntime_SOURCE_DIR})
264 message(STATUS "ONNXRUNTIME_DIR: ${ONNXRUNTIME_DIR}") 264 message(STATUS "ONNXRUNTIME_DIR: ${ONNXRUNTIME_DIR}")
265 265
266 -if(SHERPA_ONNX_ENABLE_PORTAUDIO) 266 +if(SHERPA_ONNX_ENABLE_PORTAUDIO AND SHERPA_ONNX_ENABLE_BINARY)
  267 + # portaudio is used only in building demo binaries and the sherpa-onnx-core
  268 + # library does not depend on it.
267 include(portaudio) 269 include(portaudio)
268 endif() 270 endif()
269 271