File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -917,11 +917,15 @@ endif()
917
917
# ========================== build platform ==========================
918
918
status ("" )
919
919
status (" Platform:" )
920
- if (NOT CMAKE_VERSION VERSION_LESS 2.8.11 AND NOT BUILD_INFO_SKIP_TIMESTAMP )
921
- string (TIMESTAMP TIMESTAMP "" UTC )
922
- if (TIMESTAMP )
923
- status (" Timestamp:" ${TIMESTAMP} )
924
- endif ()
920
+ if (NOT DEFINED OPENCV_TIMESTAMP
921
+ AND NOT CMAKE_VERSION VERSION_LESS 2.8.11
922
+ AND NOT BUILD_INFO_SKIP_TIMESTAMP
923
+ )
924
+ string (TIMESTAMP OPENCV_TIMESTAMP "" UTC )
925
+ set (OPENCV_TIMESTAMP "${OPENCV_TIMESTAMP} " CACHE STRING "Timestamp of OpenCV build configuration" FORCE )
926
+ endif ()
927
+ if (OPENCV_TIMESTAMP )
928
+ status (" Timestamp:" ${OPENCV_TIMESTAMP} )
925
929
endif ()
926
930
status (" Host:" ${CMAKE_HOST_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_VERSION} ${CMAKE_HOST_SYSTEM_PROCESSOR} )
927
931
if (CMAKE_CROSSCOMPILING )
You can’t perform that action at this time.
0 commit comments