diff options
| author | Ildar Mulyukov <ildar@altlinux.ru> | 2021-05-24 08:53:18 (GMT) |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2022-06-06 17:41:57 (GMT) |
| commit | 36740498db70eb3e38704906e66cd2f8a56bf319 (patch) | |
| tree | f6d6fcc775714a52a0f874396552bdff86619e1e | |
| parent | 5f28f89df2544846fb4144d85de9c0dc092301c7 (diff) | |
CMakeLists.txt: add double quotes in STRIP command
fixes cases when git is missing in the build system
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 55b68bc..f6aaf62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) |
