From 467fcba39fbccd2dd9b7e1ebccd5f62cbef70990 Mon Sep 17 00:00:00 2001 From: Hui Li Date: Thu, 4 Feb 2021 16:29:16 +0800 Subject: [PATCH] [TD-2935]not set commit id when no git cmd --- cmake/version.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmake/version.inc b/cmake/version.inc index 40b61a2cef..07356bb216 100755 --- a/cmake/version.inc +++ b/cmake/version.inc @@ -20,7 +20,6 @@ IF (DEFINED GITINFO) ELSEIF (HAVE_GIT) execute_process(COMMAND git log -1 --format=%H WORKING_DIRECTORY ${TD_COMMUNITY_DIR} OUTPUT_VARIABLE GIT_COMMITID) message(STATUS "git log result:${GIT_COMMITID}") - #IF (${GIT_COMMITID}) IF (GIT_COMMITID) string (REGEX REPLACE "[\n\t\r]" "" GIT_COMMITID ${GIT_COMMITID}) SET(TD_VER_GIT ${GIT_COMMITID}) @@ -38,7 +37,6 @@ IF (DEFINED GITINFOI) ELSEIF (HAVE_GIT) execute_process(COMMAND git log -1 --format=%H WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE GIT_COMMITID) message(STATUS "git log result:${GIT_COMMITID}") - #IF (${GIT_COMMITID}) IF (GIT_COMMITID) string (REGEX REPLACE "[\n\t\r]" "" GIT_COMMITID ${GIT_COMMITID}) SET(TD_VER_GIT_INTERNAL ${GIT_COMMITID}) -- GitLab