diff --git a/CMakeLists.txt b/CMakeLists.txt index fef3d43..5b2b51f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,13 +12,8 @@ if ("${GIT_TAG}" STREQUAL "") STRING(TIMESTAMP COMPILE_TIME %Y-%m-%d_%H:%M:%S) SET(GIT_VERSION ${COMPILE_TIME}) else () - EXECUTE_PROCESS(COMMAND git rev-parse --short HEAD - OUTPUT_VARIABLE GIT_HASH) - STRING(REGEX REPLACE "\n$" "" GIT_TAG ${GIT_TAG}) - STRING(REGEX REPLACE "\n$" "" GIT_HASH ${GIT_HASH}) - - SET(GIT_VERSION ${GIT_TAG}_${GIT_HASH}) + SET(GIT_VERSION ${GIT_TAG}) endif ()