Skip to content

Commit ea02b95

Browse files
author
Ildar Mulyukov
committed
CMakeLists.txt: add double quotes in STRIP command
fixes cases when git is missing in the build system
1 parent 7403073 commit ea02b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ execute_process(COMMAND git rev-parse --short HEAD
6262
OUTPUT_VARIABLE PROJECT_GIT_COMMIT_HASH
6363
RESULT_VARIABLE PROJECT_GIT_COMMIT_HASH_SUCCESS)
6464

65-
string(STRIP ${PROJECT_GIT_COMMIT_HASH} PROJECT_GIT_COMMIT_HASH)
65+
string(STRIP "${PROJECT_GIT_COMMIT_HASH}" PROJECT_GIT_COMMIT_HASH)
6666

6767
message("PROJECT_GIT_COMMIT_HASH_SUCCESS? " ${PROJECT_GIT_COMMIT_HASH_SUCCESS})
6868

0 commit comments

Comments
 (0)