message: use git module to find git
diff: @@ -196,24 +196,29 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
  set(SUN TRUE)
  endif()
  +find_package(Git)
  +if(Git_FOUND)
  if (NOT DEFINED GIT_COMMIT_HASH)
  execute_process(
  - COMMAND git log -1 --format=%h
  + COMMAND ${GIT_EXECUTABLE} log -1 --format=%h
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  RESULT_VARIABLE GIT_RESULT
  OUTPUT_VARIABLE GIT_COMMIT_HASH
  OUTPUT_STRIP_TRAILING_WHITESPACE)
  endif()
  execute_process(
  - COMMAND git describe --tags --abbrev=0
  + COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=0
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  OUTPUT_VARIABLE GIT_LAST_TAG
  OUTPUT_STRIP_TRAILING_WHITESPACE)
  execute_process(
  - COMMAND git describe --tags --long
  + COMMAND ${GIT_EXECUTABLE} describe --tags --long
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  OUTPUT_VARIABLE GIT_ITERATION
  OUTPUT_STRIP_TRAILING_WHITESPACE)
  +else()
  + message("Git NOT FOUND")
  +endif()
  if(GIT_RESULT EQUAL "0")
  string(REGEX REPLACE "v([0-9]+).[0-9]+.[0-9]+" "\\1" DUCKDB_MAJOR_VERSION "${GIT_LAST_TAG}")
  @@ -238,6 +243,8 @@ else()
  set(DUCKDB_VERSION "v${DUCKDB_MAJOR_VERSION}.${DUCKDB_MINOR_VERSION}.${DUCKDB_PATCH_VERSION}-dev${DUCKDB_DEV_ITERATION}")
  endif()
  +message(STATUS "git hash ${GIT_COMMIT_HASH}, version ${DUCKDB_VERSION}")
  +
  option(AMALGAMATION_BUILD
  "Build from the amalgamation files, rather than from the normal sources."
  FALSE)
  