Skip to content

Commit

Permalink
Add working directory so that we always run the command from the righ…
Browse files Browse the repository at this point in the history
…t directory
  • Loading branch information
taysta committed Nov 1, 2023
1 parent 22ee07b commit 87f5d1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ endif()
# ideally we would separate the hash suffix into its own variable, but sed is not available everywhere
execute_process(
COMMAND "git" "describe" "--tag"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_TAG
RESULT_VARIABLE GIT_TAG_ERROR
OUTPUT_STRIP_TRAILING_WHITESPACE)
Expand Down

0 comments on commit 87f5d1c

Please sign in to comment.