Fix quoted command in execute_process

This commit is contained in:
Sine Striker 2023-09-11 14:42:19 +08:00
parent 41198b3222
commit f793ab6952
1 changed files with 1 additions and 1 deletions

View File

@ -2119,7 +2119,7 @@ function(query_git_information)
if(arg_AUTHOR)
set(__author "")
execute_process(
COMMAND "${GIT_EXECUTABLE}" log -1 --pretty=format:"%aN (%aE)"
COMMAND "${GIT_EXECUTABLE}" log -1 "--pretty=format:%aN (%aE)"
OUTPUT_VARIABLE __author
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET