CMakeLists.txt
set(CMAKE_PREFIX_PATH F:\software\libtorch\libtorch)
报错如下:
Syntax error in cmake code at
F:/software/vscode/project/bgm/v3/cpp_example/CMakeLists.txt:5
when parsing string
F:\software\libtorch\libtorch
Invalid escape sequence \s
更改后不报错:
set(CMAKE_PREFIX_PATH F:\\software\\libtorch\\libtorch)