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
For those who receive this error under Windows:
Don't set the BOOST_ROOT environment variable to a backslash-ended value.
Use forward slashes
/
in your pathsIf you are reading user input like environment variables then you'll need to do this by character replacement feature of string method.