Revert "Add possibility to specify UHUB_REVISION manually."
This reverts commit dcfcf3110d
.
This commit is contained in:
parent
82caa6b81f
commit
e6cb7a7e10
|
@ -121,19 +121,12 @@ if(UNIX)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT UHUB_REVISION AND GIT_FOUND)
|
if(GIT_FOUND AND IS_DIRECTORY ".git")
|
||||||
execute_process(COMMAND ${GIT_EXECUTABLE} show -s --pretty=format:%h OUTPUT_VARIABLE UHUB_REVISION_TEMP)
|
execute_process(COMMAND ${GIT_EXECUTABLE} show -s --pretty=format:%h OUTPUT_VARIABLE UHUB_REVISION)
|
||||||
if (UHUB_REVISION_TEMP)
|
set (UHUB_GIT_VERSION "${UHUB_VERSION_MAJOR}.${UHUB_VERSION_MINOR}.${UHUB_VERSION_PATCH}-git-${UHUB_REVISION}")
|
||||||
set (UHUB_REVISION "git-${UHUB_REVISION_TEMP}")
|
else()
|
||||||
|
set (UHUB_GIT_VERSION "${UHUB_VERSION_MAJOR}.${UHUB_VERSION_MINOR}.${UHUB_VERSION_PATCH}-release")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if (NOT UHUB_REVISION)
|
|
||||||
set (UHUB_REVISION "release")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set (UHUB_GIT_VERSION "${UHUB_VERSION_MAJOR}.${UHUB_VERSION_MINOR}.${UHUB_VERSION_PATCH}-${UHUB_REVISION}")
|
|
||||||
message (STATUS "Current uHub version: ${UHUB_GIT_VERSION}")
|
|
||||||
|
|
||||||
if(OPENSSL_FOUND)
|
if(OPENSSL_FOUND)
|
||||||
add_definitions(-DSSL_SUPPORT=1)
|
add_definitions(-DSSL_SUPPORT=1)
|
||||||
|
|
Loading…
Reference in New Issue