cmake-server fails to configure basic project on Windows due to backslashes in paths
When configuring a project with cmake-server, it seems like backslashes in paths are not handled correctly:
Selecting Windows SDK version 10.0.15063.0 to target Windows 10.0.16299.
The CXX compiler identification is MSVC 19.10.25019.0
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe
CMake Error at C:/Users/Raoul/Documents/MyProject/build/debug/CMakeFiles/CMakeTmp/CMakeLists.txt:11 (set):
Syntax error in cmake code at
C:/Users/Raoul/Documents/MyProject/build/debug/CMakeFiles/CMakeTmp/CMakeLists.txt:11
when parsing string
C:\Users\Raoul\Documents\MyProject\build\debug/CMakeFiles/CMakeTmp
Invalid character escape '\U'.
I find this strange because cmake 3.10 can perfectly fine configure this:
Raoul@RAOUL-PC C:\Users\Raoul\Documents\MyProject\build\debug
> cmake ../..
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.15063.0 to target Windows 10.0.16299.
-- The CXX compiler identification is MSVC 19.10.25019.0
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Raoul/Documents/MyProject/build/debug
Is this a (known?) bug or am I doing something wrong?