frankyoujian
Committed by GitHub

fix cmake parse path string error (#88)

Co-authored-by: Jian You (jianyou) <jianyou@cisco.com>
... ... @@ -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()
... ...
... ... @@ -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()
... ...
... ... @@ -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()
... ...
... ... @@ -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()
... ...
... ... @@ -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()
... ...
... ... @@ -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()
... ...
... ... @@ -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()
... ...