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
|
@ -66,7 +66,7 @@ execute_process(COMMAND git rev-parse --short HEAD
|
||||||
OUTPUT_VARIABLE PROJECT_GIT_COMMIT_HASH
|
OUTPUT_VARIABLE PROJECT_GIT_COMMIT_HASH
|
||||||
RESULT_VARIABLE PROJECT_GIT_COMMIT_HASH_SUCCESS)
|
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})
|
message("PROJECT_GIT_COMMIT_HASH_SUCCESS? " ${PROJECT_GIT_COMMIT_HASH_SUCCESS})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user