Commit 1377fbf7 by Ryota Suzuki Committed by Wenzel Jakob

Fix unintentional escaping of character on Windows (#1574) (#1575)

parent 111b25b2
......@@ -100,6 +100,9 @@ if(NOT _PYTHON_SUCCESS MATCHES 0)
endif()
# Convert the process output into a list
if(WIN32)
string(REGEX REPLACE "\\\\" "/" _PYTHON_VALUES ${_PYTHON_VALUES})
endif()
string(REGEX REPLACE ";" "\\\\;" _PYTHON_VALUES ${_PYTHON_VALUES})
string(REGEX REPLACE "\n" ";" _PYTHON_VALUES ${_PYTHON_VALUES})
list(GET _PYTHON_VALUES 0 _PYTHON_VERSION_LIST)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment