Discovery:解决错误3

vs2013+opencv2.4.13+cmake

编译出错:

CMake Warning at cmake/OpenCVPackaging.cmake:23 (message):
  CPACK_PACKAGE_VERSION does not match version provided by version.hpp
  header!

解决方法:

#in OpenCVPackaging.cmake file (line 23)
set(OPENCV_VCSVERSION "2.4.13") #<--add
set(CPACK_PACKAGE_VERSION "${OPENCV_VCSVERSION}")

原因:之前装了opencv3.2.0

你可能感兴趣的:(Mess)