build: warn that GIT_REVISION is set to n/a for cmake < 2.8.2

This commit is contained in:
Bernhard Miklautz 2012-09-14 12:34:51 +02:00
parent 497190ede7
commit 403497ee5a

View File

@ -22,3 +22,9 @@ if (WITH_MONOLITHIC_BUILD)
message(FATAL_ERROR "CMAKE version >= 2.8.8 required for WITH_MONOLITHIC_BUILD")
endif()
endif(WITH_MONOLITHIC_BUILD)
# GetGitRevisionDescription requires FindGit which was added in version 2.8.2
# build won't fail but GIT_REVISION is set to n/a
if(${CMAKE_VERSION} VERSION_LESS 2.8.2)
message(WARNING "GetGitRevisionDescription reqires (FindGit) cmake >= 2.8.2 to work properly - GIT_REVISION will be set to n/a")
endif()