diff --git a/scripts/cmake/version.cmake b/scripts/cmake/version.cmake index f806845eaded..e0a22a51266e 100644 --- a/scripts/cmake/version.cmake +++ b/scripts/cmake/version.cmake @@ -83,7 +83,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.git/) string(SUBSTRING ${SOF_SRC_HASH_LONG} 0 8 SOF_SRC_HASH) message(STATUS "Source content hash: ${SOF_SRC_HASH}") else() - set(SOF_SRC_HASH ${GIT_LOG_HASH}) + string(SUBSTRING ${GIT_LOG_HASH} 0 8 SOF_SRC_HASH) message(WARNING "Source content hash can't be calculated, use GIT_LOG_HASH") endif()