Skip to content

Commit 25051b2

Browse files
committed
Fixes directory that is used when trying to figure out version
1 parent 8b8d779 commit 25051b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function(GetVersionInformation VersionTripleVar VersionStringVar)
2525
# --match "v*": only consider tags starting with 'v'
2626
execute_process(
2727
COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=0 --match "v*"
28-
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
28+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
2929
OUTPUT_VARIABLE GIT_TAG
3030
OUTPUT_STRIP_TRAILING_WHITESPACE
3131
ERROR_QUIET

0 commit comments

Comments
 (0)