diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 0b02109bf4..760a32fdb3 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -69,10 +69,11 @@ GET_LAST_COMMIT_ID(LAST_COMMIT_ID) message(STATUS "LAST_COMMIT_ID = ${LAST_COMMIT_ID}") if (NOT LAST_COMMIT_ID STREQUAL "") string(REGEX REPLACE "\n" "" LAST_COMMIT_ID ${LAST_COMMIT_ID}) + set(LAST_COMMIT_ID "${LAST_COMMIT_ID}") +else () + set(LAST_COMMIT_ID "Unknown") endif () -set(LAST_COMMIT_ID "${LAST_COMMIT_ID}") - # set build type if (CMAKE_BUILD_TYPE STREQUAL "Release") set(BUILD_TYPE "Release")