message: check .git before create pre-commit hook
diff: @@ -310,7 +310,9 @@ add_custom_target(
  )
  +IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git/")
  # Create the pre-commit hook every time we run cmake
  + message(STATUS "Create the pre-commit hook")
  set(PRE_COMMIT_HOOK ${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit)
  execute_process(
  COMMAND
  @@ -326,3 +328,6 @@ IF(${retcode} EQUAL 0)
  ELSE()
  MESSAGE(FATAL_ERROR "Creating pre-commit hook failed: ${retcode}")
  ENDIF()
  +ELSE()
  + MESSAGE(FATAL_ERROR "Currently, we don't support downloaded source code.\nPlease using git clone it and rebuild.")
  +ENDIF()
  