Skip to content

Commit b70d1b7

Browse files
committed
Merge branch 'release/alpha/master'
2 parents 6cab09c + 177a470 commit b70d1b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/GetVersion.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function(ConfigureVersionInFile target pre_file post_file)
1717
-DCreateVersion=1
1818
-Dinfile=${pre_file}
1919
-Doutfile=${post_file}
20-
-Dsourcedir=${CMAKE_CURRENT_SOURCE_DIR}
20+
-Dsource_dir=${CMAKE_CURRENT_SOURCE_DIR}
2121
-P ${CMAKE_SOURCE_DIR}/cmake/GetVersion.cmake)
2222
endfunction()
2323

@@ -30,7 +30,7 @@ function(GetCommitID var)
3030

3131
if (Git_FOUND)
3232
execute_process(
33-
COMMAND git log --format=%h -n 1 ${source_dir}
33+
COMMAND git log --format=%h -n 1 "${source_dir}"
3434
OUTPUT_STRIP_TRAILING_WHITESPACE
3535
OUTPUT_VARIABLE commit_id
3636
RESULT_VARIABLE exit_code)

0 commit comments

Comments
 (0)