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

@@ -18,6 +18,7 @@ function(download_asio)
foreach(f IN LISTS possible_file_locations)
if(EXISTS ${f})
set(asio_URL "${f}")
file(TO_CMAKE_PATH "${asio_URL}" asio_URL)
set(asio_URL2)
break()
endif()

View File

@@ -18,6 +18,7 @@ function(download_googltest)
foreach(f IN LISTS possible_file_locations)
if(EXISTS ${f})
set(googletest_URL "${f}")
file(TO_CMAKE_PATH "${googletest_URL}" googletest_URL)
set(googletest_URL2)
break()
endif()

View File

@@ -22,6 +22,7 @@ function(download_kaldi_native_fbank)
foreach(f IN LISTS possible_file_locations)
if(EXISTS ${f})
set(kaldi_native_fbank_URL "${f}")
file(TO_CMAKE_PATH "${kaldi_native_fbank_URL}" kaldi_native_fbank_URL)
set(kaldi_native_fbank_URL2 )
break()
endif()

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()

View File

@@ -19,6 +19,7 @@ function(download_portaudio)
foreach(f IN LISTS possible_file_locations)
if(EXISTS ${f})
set(portaudio_URL "${f}")
file(TO_CMAKE_PATH "${portaudio_URL}" portaudio_URL)
set(portaudio_URL2)
break()
endif()

View File

@@ -18,6 +18,7 @@ function(download_pybind11)
foreach(f IN LISTS possible_file_locations)
if(EXISTS ${f})
set(pybind11_URL "${f}")
file(TO_CMAKE_PATH "${pybind11_URL}" pybind11_URL)
set(pybind11_URL2)
break()
endif()

View File

@@ -19,6 +19,7 @@ function(download_websocketpp)
foreach(f IN LISTS possible_file_locations)
if(EXISTS ${f})
set(websocketpp_URL "${f}")
file(TO_CMAKE_PATH "${websocketpp_URL}" websocketpp_URL)
set(websocketpp_URL2)
break()
endif()