Cmake error: Invalid escape sequence \U

cmake, path

Solution

Use forward slashes `/` in your paths

C:/Users/Shreedhar/Desktop/test_CL/CMakeLists

Problem

While running my OpenCL code in VC++ 10 by using CMake I am getting the following error: ``` CMake Error at CMakeLists.txt:6 (set): Syntax error in cmake code at C:/Users/Shreedhar/Desktop/testCL/CMakeLists.txt:6 when parsing string C:\Users\Shreedhar\Desktop\test_CL\CMakeLists Invalid escape sequence \U ```

Original source

Related problems