We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cab09c + 177a470 commit b70d1b7Copy full SHA for b70d1b7
cmake/GetVersion.cmake
@@ -17,7 +17,7 @@ function(ConfigureVersionInFile target pre_file post_file)
17
-DCreateVersion=1
18
-Dinfile=${pre_file}
19
-Doutfile=${post_file}
20
- -Dsourcedir=${CMAKE_CURRENT_SOURCE_DIR}
+ -Dsource_dir=${CMAKE_CURRENT_SOURCE_DIR}
21
-P ${CMAKE_SOURCE_DIR}/cmake/GetVersion.cmake)
22
endfunction()
23
@@ -30,7 +30,7 @@ function(GetCommitID var)
30
31
if (Git_FOUND)
32
execute_process(
33
- COMMAND git log --format=%h -n 1 ${source_dir}
+ COMMAND git log --format=%h -n 1 "${source_dir}"
34
OUTPUT_STRIP_TRAILING_WHITESPACE
35
OUTPUT_VARIABLE commit_id
36
RESULT_VARIABLE exit_code)
0 commit comments