Supports cmake compilation compatible with v3.13. (#340)
Co-authored-by: chenyu <cheny65@chinatelecom.cn>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user