fix cache file judge (#27369)

revert-27520-disable_pr
Zhou Wei 4 years ago committed by GitHub
parent 189e10f1dd
commit ebc6d54446
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,8 +9,8 @@ if(WITH_GPU AND TENSORRT_FOUND)
endif()
function(download_data install_dir data_file)
string(REGEX MATCH "[^/\\]+$" data_file ${data_file})
if (NOT EXISTS ${install_dir}/${data_file})
string(REGEX MATCH "[^/\\]+$" file_name ${data_file})
if (NOT EXISTS ${install_dir}/${file_name})
inference_download_and_uncompress(${install_dir} ${INFERENCE_URL} ${data_file})
endif()
endfunction()

Loading…
Cancel
Save