You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
499 B

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -18,21 +18,6 @@ include(FeatureSummary)
  4. include(mjpg_streamer_utils)
  5. #
  6. -# Get the current git hash
  7. -#
  8. -execute_process(
  9. - COMMAND git rev-parse HEAD
  10. - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
  11. - RESULT_VARIABLE GIT_RESULT
  12. - OUTPUT_VARIABLE GIT_HASH
  13. - OUTPUT_STRIP_TRAILING_WHITESPACE
  14. -)
  15. -
  16. -if(GIT_RESULT EQUAL 0)
  17. - add_definitions("-DGIT_HASH=\"${GIT_HASH}\"")
  18. -endif()
  19. -
  20. -#
  21. # Options
  22. #
  23. set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG")