1
0
Fork 0

CMakeLists.txt: add double quotes in STRIP command

fixes cases when git is missing in the build system
This commit is contained in:
Ildar Mulyukov 2021-05-24 14:53:18 +06:00 committed by JF
parent 5f28f89df2
commit 36740498db

View file

@ -66,7 +66,7 @@ execute_process(COMMAND git rev-parse --short HEAD
OUTPUT_VARIABLE PROJECT_GIT_COMMIT_HASH
RESULT_VARIABLE PROJECT_GIT_COMMIT_HASH_SUCCESS)
string(STRIP ${PROJECT_GIT_COMMIT_HASH} PROJECT_GIT_COMMIT_HASH)
string(STRIP "${PROJECT_GIT_COMMIT_HASH}" PROJECT_GIT_COMMIT_HASH)
message("PROJECT_GIT_COMMIT_HASH_SUCCESS? " ${PROJECT_GIT_COMMIT_HASH_SUCCESS})