CMakeLists.txt: add double quotes in STRIP command
fixes cases when git is missing in the build system
This commit is contained in:
parent
5f28f89df2
commit
36740498db
1 changed files with 1 additions and 1 deletions
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in a new issue