Fix issues about DLLs when installing pre-compiled wheels on windows (#91)

This commit is contained in:
Fangjun Kuang
2023-03-18 13:55:59 +08:00
committed by GitHub
parent 355c5ef541
commit 6f92bc7362
7 changed files with 100 additions and 9 deletions

View File

@@ -62,7 +62,12 @@ if(NOT WIN32)
target_link_libraries(sherpa-onnx "-Wl,-rpath,${SHERPA_ONNX_RPATH_ORIGIN}/../lib")
endif()
install(TARGETS sherpa-onnx-core DESTINATION lib)
if(SHERPA_ONNX_ENABLE_PYTHON AND WIN32)
install(TARGETS sherpa-onnx-core DESTINATION ..)
else()
install(TARGETS sherpa-onnx-core DESTINATION lib)
endif()
install(TARGETS sherpa-onnx DESTINATION bin)
if(SHERPA_ONNX_HAS_ALSA)

View File

@@ -20,7 +20,7 @@
namespace sherpa_onnx {
class OnlineTransducerDecoderResult;
struct OnlineTransducerDecoderResult;
class OnlineTransducerModel {
public: