Windows: Compiler -print-sysroot storage broken by backslashes
I have cross-toolchain running on Windows to compile for Linux running on ARM. My CMake configuration works with CMake 3.16 and 3.17.2. On the current master I get the following syntax error:
$ cmake -C ../../cmake/configurations/XYZ-debug-using-ABC-arm-linux-gnueabi-on-windows.cmake -B ./binarytree -G "CodeBlocks - Unix Makefiles" --warn-uninitialized ../..
Warn about uninitialized values.
loading initial cache file ..\../cmake/configurations/XYZ-debug-using-ABC-arm-linux-gnueabi-on-windows.cmake
-- The C compiler identification is GNU 5.3.1
CMake Error at cmake-build/XYZ-debug/binarytree/CMakeFiles/3.17.20200506-g00065e2/CMakeCCompiler.cmake:18 (set):
Syntax error in cmake code at
C:/Users/deinhard/Documents/Project/cmake-build/XYZ-debug/binarytree/CMakeFiles/3.17.20200506-g00065e2/CMakeCCompiler.cmake:18
when parsing string
c:\program files (x86)\ABC\armelflinuxjessiecrosstools\bin\../sysroot-jessie/usr
Invalid character escape '\p'.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/deinhard/Documents/Project/cmake-build/XYZ-debug/binarytree/CMakeFiles/CMakeOutput.log".