CMake: Warn when buildinfo is disabled due to missing Git

This commit is contained in:
Sergey Sharybin 2016-03-11 14:49:23 +05:00
parent cc2138888a
commit 086de5b5e3
1 changed files with 1 additions and 0 deletions

View File

@ -707,6 +707,7 @@ endif()
if(WITH_BUILDINFO)
find_package(Git)
if(NOT GIT_FOUND)
message(WARNING "Git was not found, disabling WITH_BUILDINFO")
set(WITH_BUILDINFO OFF)
endif()
endif()