Skip to content

Commit

Permalink
Link the math lib. (k2-fsa#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Feb 21, 2024
1 parent 78f6b57 commit 5f475b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sherpa-onnx/csrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ else()
target_link_libraries(sherpa-onnx-core ${onnxruntime_lib_files})
endif()

target_link_libraries(sherpa-onnx-core -lm)

if(NOT BUILD_SHARED_LIBS AND APPLE)
target_link_libraries(sherpa-onnx-core "-framework Foundation")
endif()
Expand Down

0 comments on commit 5f475b5

Please sign in to comment.