未验证 提交 ebc6d544 编写于 作者: Z Zhou Wei 提交者: GitHub

fix cache file judge (#27369)

上级 189e10f1
...@@ -9,8 +9,8 @@ if(WITH_GPU AND TENSORRT_FOUND) ...@@ -9,8 +9,8 @@ if(WITH_GPU AND TENSORRT_FOUND)
endif() endif()
function(download_data install_dir data_file) function(download_data install_dir data_file)
string(REGEX MATCH "[^/\\]+$" data_file ${data_file}) string(REGEX MATCH "[^/\\]+$" file_name ${data_file})
if (NOT EXISTS ${install_dir}/${data_file}) if (NOT EXISTS ${install_dir}/${file_name})
inference_download_and_uncompress(${install_dir} ${INFERENCE_URL} ${data_file}) inference_download_and_uncompress(${install_dir} ${INFERENCE_URL} ${data_file})
endif() endif()
endfunction() endfunction()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册