Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

I did a quick find for the second part of your question and it seems this line of code was the source of our warning.

 if(GIT_EXECUTABLE)
  execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags --always --dirty --match "2.[0-9].[0-9]*"
    WORKING_DIRECTORY "${OpenCV_SOURCE_DIR}"
    OUTPUT_VARIABLE OPENCV_VCSVERSION
    RESULT_VARIABLE GIT_RESULT
    ERROR_QUIET
    OUTPUT_STRIP_TRAILING_WHITESPACE
  )
  if(NOT GIT_RESULT EQUAL 0)
    set(OPENCV_VCSVERSION "unknown")
  endif()
else()
  # We don't have git:
  set(OPENCV_VCSVERSION "unknown")
endif()

This snipper of code belongs to the CMakeLists.txt file. It essentially sets our OPENCV_VCSVERSION to "unknown". I don't think it would create any problems for us in the long run and can be safely overlooked.