From 44ba32b029d9eb16e78e39d07b16450fb323a216 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Thu, 31 Aug 2023 12:29:06 +0200 Subject: [PATCH] try to fix CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9dc3e68..5bd3c5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project(cnorxz) execute_process(COMMAND bash "-c" "git rev-parse HEAD" OUTPUT_VARIABLE GIT_HASH OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND bash "-c" "git tag -l --sort=refname 'v*' | tail -n1" OUTPUT_VARIABLE GIT_TAG OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND bash "-c" "git rev-list -n 1 ${GIT_TAG}" OUTPUT_VARIABLE GIT_TAG_HASH OUTPUT_STRIP_TRAILING_WHITESPACE) -string(SUBSTRING ${GIT_TAG} 1 -1 VERSION) +string(SUBSTRING "${GIT_TAG}" 1 -1 VERSION) if(NOT ("${GIT_HASH}" EQUAL "${GIT_TAG_HASH}")) string(SUBSTRING ${GIT_HASH} 0 7 GIT_HASH_SHORT) set(VERSION "${VERSION}-${GIT_HASH_SHORT}")