Skip to content

Commit

Permalink
Fix building OpenFst on Windows. (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Apr 9, 2024
1 parent 0d90b34 commit db1b3ab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmake/openfst.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
function(download_openfst)
include(FetchContent)

set(openfst_URL "https://github.com/csukuangfj/openfst/archive/792965fda2a3bc29f282321f527af0d6ba26fd22.zip")
set(openfst_URL2 "https://hub.nuaa.cf/csukuangfj/openfst/archive/792965fda2a3bc29f282321f527af0d6ba26fd22.zip")
set(openfst_HASH "SHA256=815d8acf555e4aaece294d6280ec209d0e9d91e0120e8406b24ff7124ecdbb26")
set(openfst_URL "https://github.com/csukuangfj/openfst/archive/refs/tags/sherpa-onnx-2024-04-09.tar.gz")
set(openfst_URL2 "https://hub.nuaa.cf/csukuangfj/openfst/archive/refs/tags/sherpa-onnx-2024-04-09.tar.gz")
set(openfst_HASH "SHA256=d6bdb1700fa38938807184c69a5abe133e730af80822bb85c8f228768a969b92")

# If you don't have access to the Internet,
# please pre-download it
set(possible_file_locations
$ENV{HOME}/Downloads/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip
${CMAKE_SOURCE_DIR}/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip
${CMAKE_BINARY_DIR}/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip
/tmp/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip
/star-fj/fangjun/download/github/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip
$ENV{HOME}/Downloads/openfst-sherpa-onnx-2024-04-09.tar.gz
${CMAKE_SOURCE_DIR}/openfst-sherpa-onnx-2024-04-09.tar.gz
${CMAKE_BINARY_DIR}/openfst-sherpa-onnx-2024-04-09.tar.gz
/tmp/openfst-sherpa-onnx-2024-04-09.tar.gz
/star-fj/fangjun/download/github/openfst-sherpa-onnx-2024-04-09.tar.gz
)

foreach(f IN LISTS possible_file_locations)
Expand Down

0 comments on commit db1b3ab

Please sign in to comment.