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) @@ -18,6 +18,7 @@ function(download_asio)
18 foreach(f IN LISTS possible_file_locations) 18 foreach(f IN LISTS possible_file_locations)
19 if(EXISTS ${f}) 19 if(EXISTS ${f})
20 set(asio_URL "${f}") 20 set(asio_URL "${f}")
  21 + file(TO_CMAKE_PATH "${asio_URL}" asio_URL)
21 set(asio_URL2) 22 set(asio_URL2)
22 break() 23 break()
23 endif() 24 endif()
@@ -18,6 +18,7 @@ function(download_googltest) @@ -18,6 +18,7 @@ function(download_googltest)
18 foreach(f IN LISTS possible_file_locations) 18 foreach(f IN LISTS possible_file_locations)
19 if(EXISTS ${f}) 19 if(EXISTS ${f})
20 set(googletest_URL "${f}") 20 set(googletest_URL "${f}")
  21 + file(TO_CMAKE_PATH "${googletest_URL}" googletest_URL)
21 set(googletest_URL2) 22 set(googletest_URL2)
22 break() 23 break()
23 endif() 24 endif()
@@ -22,6 +22,7 @@ function(download_kaldi_native_fbank) @@ -22,6 +22,7 @@ function(download_kaldi_native_fbank)
22 foreach(f IN LISTS possible_file_locations) 22 foreach(f IN LISTS possible_file_locations)
23 if(EXISTS ${f}) 23 if(EXISTS ${f})
24 set(kaldi_native_fbank_URL "${f}") 24 set(kaldi_native_fbank_URL "${f}")
  25 + file(TO_CMAKE_PATH "${kaldi_native_fbank_URL}" kaldi_native_fbank_URL)
25 set(kaldi_native_fbank_URL2 ) 26 set(kaldi_native_fbank_URL2 )
26 break() 27 break()
27 endif() 28 endif()
@@ -100,6 +100,7 @@ function(download_onnxruntime) @@ -100,6 +100,7 @@ function(download_onnxruntime)
100 foreach(f IN LISTS possible_file_locations) 100 foreach(f IN LISTS possible_file_locations)
101 if(EXISTS ${f}) 101 if(EXISTS ${f})
102 set(onnxruntime_URL "${f}") 102 set(onnxruntime_URL "${f}")
  103 + file(TO_CMAKE_PATH "${onnxruntime_URL}" onnxruntime_URL)
103 set(onnxruntime_URL2) 104 set(onnxruntime_URL2)
104 break() 105 break()
105 endif() 106 endif()
@@ -19,6 +19,7 @@ function(download_portaudio) @@ -19,6 +19,7 @@ function(download_portaudio)
19 foreach(f IN LISTS possible_file_locations) 19 foreach(f IN LISTS possible_file_locations)
20 if(EXISTS ${f}) 20 if(EXISTS ${f})
21 set(portaudio_URL "${f}") 21 set(portaudio_URL "${f}")
  22 + file(TO_CMAKE_PATH "${portaudio_URL}" portaudio_URL)
22 set(portaudio_URL2) 23 set(portaudio_URL2)
23 break() 24 break()
24 endif() 25 endif()
@@ -18,6 +18,7 @@ function(download_pybind11) @@ -18,6 +18,7 @@ function(download_pybind11)
18 foreach(f IN LISTS possible_file_locations) 18 foreach(f IN LISTS possible_file_locations)
19 if(EXISTS ${f}) 19 if(EXISTS ${f})
20 set(pybind11_URL "${f}") 20 set(pybind11_URL "${f}")
  21 + file(TO_CMAKE_PATH "${pybind11_URL}" pybind11_URL)
21 set(pybind11_URL2) 22 set(pybind11_URL2)
22 break() 23 break()
23 endif() 24 endif()
@@ -19,6 +19,7 @@ function(download_websocketpp) @@ -19,6 +19,7 @@ function(download_websocketpp)
19 foreach(f IN LISTS possible_file_locations) 19 foreach(f IN LISTS possible_file_locations)
20 if(EXISTS ${f}) 20 if(EXISTS ${f})
21 set(websocketpp_URL "${f}") 21 set(websocketpp_URL "${f}")
  22 + file(TO_CMAKE_PATH "${websocketpp_URL}" websocketpp_URL)
22 set(websocketpp_URL2) 23 set(websocketpp_URL2)
23 break() 24 break()
24 endif() 25 endif()