fix cmake parse path string error (#88)

Co-authored-by: Jian You (jianyou) <jianyou@cisco.com>
This commit is contained in:
frankyoujian
2023-03-07 18:01:29 +08:00
committed by GitHub
parent 1cf2c0417a
commit 3a79115884
7 changed files with 7 additions and 0 deletions

View File

@@ -100,6 +100,7 @@ function(download_onnxruntime)
foreach(f IN LISTS possible_file_locations)
if(EXISTS ${f})
set(onnxruntime_URL "${f}")
file(TO_CMAKE_PATH "${onnxruntime_URL}" onnxruntime_URL)
set(onnxruntime_URL2)
break()
endif()