solvespace/solvespace-v2.1-GetGitCommitHash.patch

17 lines
754 B
Diff

diff -Naur solvespace-2.x.orig/cmake/GetGitCommitHash.cmake solvespace-2.x/cmake/GetGitCommitHash.cmake
--- solvespace-2.x.orig/cmake/GetGitCommitHash.cmake 2016-07-12 22:51:03.176211103 +0200
+++ solvespace-2.x/cmake/GetGitCommitHash.cmake 2016-07-12 22:51:43.072113111 +0200
@@ -25,11 +25,11 @@
endif()
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${GIT_DEPENDS})
- string(STRIP ${HEAD_REF} HEAD_REF)
+ string(STRIP "${HEAD_REF}" HEAD_REF)
if(HEAD_REF STREQUAL "")
message(WARNING "Cannot determine git HEAD")
else()
- set(GIT_COMMIT_HASH ${HEAD_REF} PARENT_SCOPE)
+ set(GIT_COMMIT_HASH "${HEAD_REF}" PARENT_SCOPE)
endif()
endfunction()
get_git_commit_hash()