CMake错误:无效的转义序列\ U [英] Cmake error: Invalid escape sequence \U

查看:313
本文介绍了CMake错误:无效的转义序列\ U的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用CMake在VC ++ 10中运行OpenCL代码时,出现以下错误:

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

推荐答案

在路径中使用正斜杠/

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

这篇关于CMake错误:无效的转义序列\ U的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆