Error when using CMake to compile [Win10 VS2015]

asked 2016-02-16 23:06:17 -0600

I am trying to use CMAKE to set up the lib files for OpenCV. However, when I hit configurewith CMake, I get this output:

CMake Error at cmake/OpenCVUtils.cmake:76 (if): if given arguments:

"E:/Libraries/C++/OpenCV/Build" "MATCHES" "^E:/Libraries/C++/OpenCV/sources" "OR" "E:/Libraries/C++/OpenCV/Build" "MATCHES" "^E:/Libraries/C++/OpenCV/Build"

Regular expression "^E:/Libraries/C++/OpenCV/sources" cannot compile Call Stack (most recent call first): CMakeLists.txt:437 (ocv_include_directories)

I'm not sure what is going on. My src path is E:/Libraries/C++/OpenCV/sources" and build path is E:/Libraries/C++/OpenCV/Build

edit retag flag offensive close merge delete

Comments

2

please do not use ++ in a file path

berak gravatar imageberak ( 2016-02-17 00:47:55 -0600 )edit