Skip to content

Commit

Permalink
Fix hash ver
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Nov 29, 2022
1 parent 8159e63 commit 7428a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ set(dobby.HEADER_FILE_LIST
# ---

# add build version
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
execute_process(
COMMAND git rev-parse --short --verify HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE VERSION_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
Expand Down

0 comments on commit 7428a76

Please sign in to comment.