mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
cleanup: remove a duplicate check for GIT_EXECUTABLE
This commit is contained in:
parent
d1d3aff985
commit
b75ca7e086
1 changed files with 3 additions and 2 deletions
|
@ -115,12 +115,14 @@ FOREACH(_base
|
|||
ENDIF()
|
||||
ENDFOREACH()
|
||||
|
||||
FOREACH(tool gtar tar git)
|
||||
FOREACH(tool gtar tar)
|
||||
STRING(TOUPPER ${tool} TOOL)
|
||||
FIND_PROGRAM(${TOOL}_EXECUTABLE ${tool} DOC "path to the executable")
|
||||
MARK_AS_ADVANCED(${TOOL}_EXECUTABLE)
|
||||
ENDFOREACH()
|
||||
|
||||
FIND_PACKAGE(Git)
|
||||
|
||||
# Following autotools tradition, add preprocessor definitions
|
||||
# specified in environment variable CPPFLAGS
|
||||
IF(DEFINED ENV{CPPFLAGS})
|
||||
|
@ -433,7 +435,6 @@ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/include/mysql_version.h.in
|
|||
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/sql/sql_builtin.cc.in
|
||||
${CMAKE_BINARY_DIR}/sql/sql_builtin.cc)
|
||||
|
||||
FIND_PACKAGE(Git)
|
||||
IF(GIT_EXECUTABLE)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
|
||||
|
|
Loading…
Reference in a new issue