Merge pull request #10300 from alalek:cmake_timestamp_update

pull/10302/head
Alexander Alekhin 7 years ago
commit 3966595f9a
  1. 14
      CMakeLists.txt

@ -917,11 +917,15 @@ endif()
# ========================== build platform ========================== # ========================== build platform ==========================
status("") status("")
status(" Platform:") status(" Platform:")
if(NOT CMAKE_VERSION VERSION_LESS 2.8.11 AND NOT BUILD_INFO_SKIP_TIMESTAMP) if(NOT DEFINED OPENCV_TIMESTAMP
string(TIMESTAMP TIMESTAMP "" UTC) AND NOT CMAKE_VERSION VERSION_LESS 2.8.11
if(TIMESTAMP) AND NOT BUILD_INFO_SKIP_TIMESTAMP
status(" Timestamp:" ${TIMESTAMP}) )
endif() string(TIMESTAMP OPENCV_TIMESTAMP "" UTC)
set(OPENCV_TIMESTAMP "${OPENCV_TIMESTAMP}" CACHE STRING "Timestamp of OpenCV build configuration" FORCE)
endif()
if(OPENCV_TIMESTAMP)
status(" Timestamp:" ${OPENCV_TIMESTAMP})
endif() endif()
status(" Host:" ${CMAKE_HOST_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_VERSION} ${CMAKE_HOST_SYSTEM_PROCESSOR}) status(" Host:" ${CMAKE_HOST_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_VERSION} ${CMAKE_HOST_SYSTEM_PROCESSOR})
if(CMAKE_CROSSCOMPILING) if(CMAKE_CROSSCOMPILING)

Loading…
Cancel
Save