Skip to content

Commit

Permalink
execute_process() can't interpret targets
Browse files Browse the repository at this point in the history
  • Loading branch information
greenc-FNAL committed Feb 6, 2024
1 parent fafee8f commit e98784f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function(_set_version_release)
else()
find_package(Git 2.22.0 REQUIRED)
# Try to get the current branch for the version.
execute_process(COMMAND Git::Git branch --show-current
execute_process(COMMAND ${GIT_EXECUTABLE} branch --show-current
COMMAND_ERROR_IS_FATAL ANY
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_VARIABLE current_branch
Expand Down

0 comments on commit e98784f

Please sign in to comment.