Skip to content

Commit 9f71158

Browse files
BerrysoftGit for Windows Build Agent
authored andcommitted
cmake: install headless-git.
headless-git is a git executable without opening a console window. It is useful when other GUI executables want to call git. We should install it together with git on Windows. Signed-off-by: Yuyi Wang <[email protected]>
1 parent d5babbd commit 9f71158

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/buildsystems/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ if(WIN32)
775775
endif()
776776

777777
add_executable(headless-git ${CMAKE_SOURCE_DIR}/compat/win32/headless.c)
778+
list(APPEND PROGRAMS_BUILT headless-git)
778779
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
779780
target_link_options(headless-git PUBLIC -municode -Wl,-subsystem,windows)
780781
elseif(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
@@ -954,7 +955,7 @@ list(TRANSFORM git_perl_scripts PREPEND "${CMAKE_BINARY_DIR}/")
954955

955956
#install
956957
foreach(program ${PROGRAMS_BUILT})
957-
if(program MATCHES "^(git|git-shell|scalar)$")
958+
if(program MATCHES "^(git|git-shell|headless-git|scalar)$")
958959
install(TARGETS ${program}
959960
RUNTIME DESTINATION bin)
960961
else()

0 commit comments

Comments
 (0)