|
|
|
@ -755,6 +755,36 @@ status("General configuration for OpenCV ${OPENCV_VERSION} ===================== |
|
|
|
|
if(OPENCV_VCSVERSION) |
|
|
|
|
status(" Version control:" ${OPENCV_VCSVERSION}) |
|
|
|
|
endif() |
|
|
|
|
if(OPENCV_EXTRA_MODULES_PATH AND NOT BUILD_INFO_SKIP_EXTRA_MODULES) |
|
|
|
|
set(__dump_extra_header OFF) |
|
|
|
|
foreach(p ${OPENCV_EXTRA_MODULES_PATH}) |
|
|
|
|
if(EXISTS ${p}) |
|
|
|
|
if(NOT __dump_extra_header) |
|
|
|
|
set(__dump_extra_header ON) |
|
|
|
|
status("") |
|
|
|
|
status(" Extra modules:") |
|
|
|
|
else() |
|
|
|
|
status("") |
|
|
|
|
endif() |
|
|
|
|
set(EXTRA_MODULES_VCSVERSION "unknown") |
|
|
|
|
if(GIT_FOUND) |
|
|
|
|
execute_process(COMMAND "${GIT_EXECUTABLE}" describe --tags --always --dirty --match "[0-9].[0-9].[0-9]*" |
|
|
|
|
WORKING_DIRECTORY "${p}" |
|
|
|
|
OUTPUT_VARIABLE EXTRA_MODULES_VCSVERSION |
|
|
|
|
RESULT_VARIABLE GIT_RESULT |
|
|
|
|
ERROR_QUIET |
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE |
|
|
|
|
) |
|
|
|
|
if(NOT GIT_RESULT EQUAL 0) |
|
|
|
|
set(EXTRA_MODULES_VCSVERSION "unknown") |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
status(" Location (extra):" ${p}) |
|
|
|
|
status(" Version control (extra):" ${EXTRA_MODULES_VCSVERSION}) |
|
|
|
|
endif() |
|
|
|
|
endforeach() |
|
|
|
|
unset(__dump_extra_header) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
# ========================== build platform ========================== |
|
|
|
|
status("") |
|
|
|
|