Fangjun Kuang
Committed by GitHub

Fix using sherpa-onnx as a cmake sub-project. (#2550)

@@ -62,7 +62,7 @@ jobs: @@ -62,7 +62,7 @@ jobs:
62 path: ./*.jar 62 path: ./*.jar
63 63
64 - name: Release jar 64 - name: Release jar
65 - if: repository_owner == 'csukuangfj' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') 65 + if: github.repository_owner == 'csukuangfj' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
66 uses: svenstaro/upload-release-action@v2 66 uses: svenstaro/upload-release-action@v2
67 with: 67 with:
68 file_glob: true 68 file_glob: true
@@ -43,7 +43,7 @@ function(download_cppinyin) @@ -43,7 +43,7 @@ function(download_cppinyin)
43 43
44 file(REMOVE ${cppinyin_SOURCE_DIR}/CMakeLists.txt) 44 file(REMOVE ${cppinyin_SOURCE_DIR}/CMakeLists.txt)
45 configure_file( 45 configure_file(
46 - ${CMAKE_SOURCE_DIR}/cmake/cppinyin.patch 46 + ${CMAKE_CURRENT_LIST_DIR}/cppinyin.patch
47 ${cppinyin_SOURCE_DIR}/CMakeLists.txt 47 ${cppinyin_SOURCE_DIR}/CMakeLists.txt
48 COPYONLY 48 COPYONLY
49 ) 49 )