I'm trying to build OpenCV with Cmake on Windows 7. I chose to use the Visual Studio 10 compiler.
I'm getting the following error:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component):
get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:2 (PROJECT)
I'm sure the path to OpenCV is correct. Can anyone please guide me as to how to fix this error?
Thanks in advance!!
PATH|ABSOLUTE|NAME|EXT|NAME_WE|REALPATH
to tell it what to return. See the docs – SethMMorton