Report version hash when building

This will reduce the number of "which version are you using"-replies
because this can now be found in the log.
This commit is contained in:
Roland Kaufmann 2013-02-06 14:21:08 +01:00
parent 45e00d88d7
commit 5af259f2e1

View File

@ -21,6 +21,10 @@ list (APPEND opm-core_INCLUDE_DIRS "${opm-core_INCLUDE_DIR}")
set (opm-core_MODULE_DIR "${PROJECT_SOURCE_DIR}/cmake/Modules")
list (APPEND CMAKE_MODULE_PATH ${opm-core_MODULE_DIR})
# very early try to print repo id (to pinpoint version if something goes wrong)
include (UseVCSInfo)
vcs_info ()
# include special
if (CMAKE_VERSION VERSION_LESS "2.8.7")
message (STATUS "Enabling backward compatibility modules for CMake ${CMAKE_VERSION}")