Ask Your Question

Revision history [back]

Error when using CMake to compile [Win10 VS2015]

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