Fix building OpenFst on Windows. (#744)

This commit is contained in:
Fangjun Kuang
2024-04-09 11:17:46 +08:00
committed by GitHub
parent 0d90b34e4a
commit db1b3ab1f3

View File

@@ -3,18 +3,18 @@
function(download_openfst) function(download_openfst)
include(FetchContent) include(FetchContent)
set(openfst_URL "https://github.com/csukuangfj/openfst/archive/792965fda2a3bc29f282321f527af0d6ba26fd22.zip") 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/792965fda2a3bc29f282321f527af0d6ba26fd22.zip") set(openfst_URL2 "https://hub.nuaa.cf/csukuangfj/openfst/archive/refs/tags/sherpa-onnx-2024-04-09.tar.gz")
set(openfst_HASH "SHA256=815d8acf555e4aaece294d6280ec209d0e9d91e0120e8406b24ff7124ecdbb26") set(openfst_HASH "SHA256=d6bdb1700fa38938807184c69a5abe133e730af80822bb85c8f228768a969b92")
# If you don't have access to the Internet, # If you don't have access to the Internet,
# please pre-download it # please pre-download it
set(possible_file_locations set(possible_file_locations
$ENV{HOME}/Downloads/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip $ENV{HOME}/Downloads/openfst-sherpa-onnx-2024-04-09.tar.gz
${CMAKE_SOURCE_DIR}/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip ${CMAKE_SOURCE_DIR}/openfst-sherpa-onnx-2024-04-09.tar.gz
${CMAKE_BINARY_DIR}/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip ${CMAKE_BINARY_DIR}/openfst-sherpa-onnx-2024-04-09.tar.gz
/tmp/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip /tmp/openfst-sherpa-onnx-2024-04-09.tar.gz
/star-fj/fangjun/download/github/openfst-792965fda2a3bc29f282321f527af0d6ba26fd22.zip /star-fj/fangjun/download/github/openfst-sherpa-onnx-2024-04-09.tar.gz
) )
foreach(f IN LISTS possible_file_locations) foreach(f IN LISTS possible_file_locations)