From 1988fe85f6d4e2d2f809e705e13d69d0b57bd0fc Mon Sep 17 00:00:00 2001
From: shixian.shi <shixian.shi@alibaba-inc.com>
Date: 星期四, 04 五月 2023 19:27:00 +0800
Subject: [PATCH] update
---
funasr/runtime/onnxruntime/src/CMakeLists.txt | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/CMakeLists.txt b/funasr/runtime/onnxruntime/src/CMakeLists.txt
index 09c02b1..d33c540 100644
--- a/funasr/runtime/onnxruntime/src/CMakeLists.txt
+++ b/funasr/runtime/onnxruntime/src/CMakeLists.txt
@@ -8,7 +8,7 @@
add_library(funasr ${files})
if(WIN32)
- set(EXTRA_LIBS pthread yaml-cpp csrc)
+ set(EXTRA_LIBS pthread yaml-cpp csrc glog)
if(CMAKE_CL_64)
target_link_directories(funasr PUBLIC ${CMAKE_SOURCE_DIR}/win/lib/x64)
else()
@@ -18,11 +18,7 @@
target_compile_definitions(funasr PUBLIC -D_FUNASR_API_EXPORT)
else()
-
- set(EXTRA_LIBS pthread yaml-cpp csrc)
-
- target_include_directories(funasr PUBLIC)
- target_link_directories(funasr PUBLIC)
+ set(EXTRA_LIBS pthread yaml-cpp csrc glog )
include_directories(${ONNXRUNTIME_DIR}/include)
endif()
@@ -32,5 +28,4 @@
add_executable(funasr-onnx-offline "funasr-onnx-offline.cpp")
add_executable(funasr-onnx-offline-rtf "funasr-onnx-offline-rtf.cpp")
target_link_libraries(funasr-onnx-offline PUBLIC funasr)
-target_link_libraries(funasr-onnx-offline-rtf PUBLIC funasr)
-
+target_link_libraries(funasr-onnx-offline-rtf PUBLIC funasr)
\ No newline at end of file
--
Gitblit v1.9.1