Commit 8ca22190 authored by Sergei Golubchik's avatar Sergei Golubchik

cmake .git warning

only run git if .git exists, don't do it for source tarballs
parent 675e7e7d
...@@ -439,7 +439,7 @@ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/include/mysql_version.h.in ...@@ -439,7 +439,7 @@ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/include/mysql_version.h.in
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/sql/sql_builtin.cc.in CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/sql/sql_builtin.cc.in
${CMAKE_BINARY_DIR}/sql/sql_builtin.cc) ${CMAKE_BINARY_DIR}/sql/sql_builtin.cc)
IF(GIT_EXECUTABLE) IF(GIT_EXECUTABLE AND EXISTS ${PROJECT_SOURCE_DIR}/.git)
EXECUTE_PROCESS( EXECUTE_PROCESS(
COMMAND ${GIT_EXECUTABLE} rev-parse HEAD COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
......
Subproject commit ed5921ed4f26407ff1ff0596f2c74c8d7098632d Subproject commit 463211f4a9e68eb7a2fd7a8a3466e5bf3a13e361
...@@ -241,7 +241,7 @@ IF (ZSTD_FOUND) ...@@ -241,7 +241,7 @@ IF (ZSTD_FOUND)
SET(WITH_ZSTD ON) SET(WITH_ZSTD ON)
ENDIF() ENDIF()
IF(GIT_EXECUTABLE) IF(GIT_EXECUTABLE AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/.git)
EXECUTE_PROCESS( EXECUTE_PROCESS(
COMMAND ${GIT_EXECUTABLE} rev-parse HEAD COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment