Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
poor1017
2023-09-25 11:48:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-09-25 11:48:55 +0800
Commit
c2518a58269947802c39d1e475e30a3814bcdc7c
c2518a58
1 parent
fef61080
Supports cmake compilation compatible with v3.13. (#340)
Co-authored-by: chenyu <cheny65@chinatelecom.cn>
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
CMakeLists.txt
sherpa-onnx/csrc/CMakeLists.txt
CMakeLists.txt
查看文件 @
c2518a5
...
...
@@ -144,7 +144,7 @@ endif()
list
(
APPEND CMAKE_MODULE_PATH
${
CMAKE_SOURCE_DIR
}
/cmake/Modules
)
list
(
APPEND CMAKE_MODULE_PATH
${
CMAKE_SOURCE_DIR
}
/cmake
)
if
(
NOT BUILD_SHARED_LIBS AND
LINUX AND NOT APPLE
)
if
(
NOT BUILD_SHARED_LIBS AND
CMAKE_SYSTEM_NAME STREQUAL Linux
)
if
(
SHERPA_ONNX_LINK_LIBSTDCPP_STATICALLY
)
message
(
STATUS
"Link libstdc++ statically"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-static-libstdc++ -static-libgcc "
)
...
...
sherpa-onnx/csrc/CMakeLists.txt
查看文件 @
c2518a5
...
...
@@ -122,7 +122,7 @@ if(SHERPA_ONNX_ENABLE_CHECK)
endif
()
endif
()
if
(
NOT BUILD_SHARED_LIBS AND
LINUX AND NOT APPLE
)
if
(
NOT BUILD_SHARED_LIBS AND
CMAKE_SYSTEM_NAME STREQUAL Linux
)
target_link_libraries
(
sherpa-onnx-core -pthread -ldl
)
endif
()
...
...
请
注册
或
登录
后发表评论