mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
build: warn that GIT_REVISION is set to n/a for cmake < 2.8.2
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user