--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,21 +18,6 @@ include(FeatureSummary)
 include(mjpg_streamer_utils)
 
 #
-# Get the current git hash
-#
-execute_process(
-  COMMAND git rev-parse HEAD
-  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
-  RESULT_VARIABLE GIT_RESULT
-  OUTPUT_VARIABLE GIT_HASH
-  OUTPUT_STRIP_TRAILING_WHITESPACE
-)
-
-if(GIT_RESULT EQUAL 0)
-  add_definitions("-DGIT_HASH=\"${GIT_HASH}\"")
-endif()
-
-#
 # Options
 #
 set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG")
