Parse error. Expected a command name
CMake Error at CMakeLists.txt:9:
Parse error. Expected a command name, got unquoted argument with text
"set(OpenCV_DIR".
原因:出现了中文括号,正确代码:
set (OpenCV_DIR E:/opencv/opencv)
#opencv
find_package(OpenCV REQUIRED)
来源:oschina
链接:https://my.oschina.net/u/4383691/blog/4915016