--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,32 +6,6 @@ project(qpwgraph HOMEPAGE_URL "https://gitlab.freedesktop.org/rncbc/qpwgraph" LANGUAGES C CXX) -execute_process ( - COMMAND git describe --tags --dirty --abbrev=6 - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} - OUTPUT_VARIABLE GIT_DESCRIBE_OUTPUT - RESULT_VARIABLE GIT_DESCRIBE_RESULT - OUTPUT_STRIP_TRAILING_WHITESPACE) -if (GIT_DESCRIBE_RESULT EQUAL 0) - set (GIT_VERSION "${GIT_DESCRIBE_OUTPUT}") - string (REGEX REPLACE "^[^0-9]+" "" GIT_VERSION "${GIT_VERSION}") - string (REGEX REPLACE "^1_" "" GIT_VERSION "${GIT_VERSION}") - string (REGEX REPLACE "^[_vV]+" "" GIT_VERSION "${GIT_VERSION}") - string (REGEX REPLACE "-g" "git." GIT_VERSION "${GIT_VERSION}") - string (REGEX REPLACE "[_|-]" "." GIT_VERSION "${GIT_VERSION}") - execute_process ( - COMMAND git rev-parse --abbrev-ref HEAD - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} - OUTPUT_VARIABLE GIT_REVPARSE_OUTPUT - RESULT_VARIABLE GIT_REVPARSE_RESULT - OUTPUT_STRIP_TRAILING_WHITESPACE) - if (GIT_REVPARSE_RESULT EQUAL 0 AND NOT GIT_REVPARSE_OUTPUT STREQUAL "main") - set (GIT_VERSION "${GIT_VERSION} [${GIT_REVPARSE_OUTPUT}]") - endif () - set (PROJECT_VERSION "${GIT_VERSION}") -endif () - - # Enable ALSA MIDI support option. option (CONFIG_ALSA_MIDI "Enable ALSA MIDI support (default=yes)" 1)