message: [CMake]: only warn when the working directory in a git worktree
diff: @@ -3,8 +3,9 @@ set(VERSION_MINOR 10)
  set(VERSION_PATCH 26)
  set(VERSION_COMMIT 0)
  +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
  find_program(GIT git)
  -if(GIT AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
  + if(GIT)
  execute_process(
  COMMAND ${GIT} describe --tags
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  @@ -33,5 +34,6 @@ if(GIT AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
  else()
  message(WARNING "git is not found")
  endif()
  +endif()
  message(STATUS "Proceeding with version: ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}.${VERSION_COMMIT}")
  