Skip to content

Commit 1515ee6

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 <Strawberry_Str@hotmail.com>
1 parent c26d215 commit 1515ee6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

contrib/buildsystems/CMakeLists.txt

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

740740
add_executable(headless-git ${CMAKE_SOURCE_DIR}/compat/win32/headless.c)
741+
list(APPEND PROGRAMS_BUILT headless-git)
741742
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
742743
target_link_options(headless-git PUBLIC -municode -Wl,-subsystem,windows)
743744
elseif(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
@@ -938,7 +939,7 @@ list(TRANSFORM git_perl_scripts PREPEND "${CMAKE_BINARY_DIR}/")
938939

939940
#install
940941
foreach(program ${PROGRAMS_BUILT})
941-
if(program MATCHES "^(git|git-shell|scalar)$")
942+
if(program MATCHES "^(git|git-shell|headless-git|scalar)$")
942943
install(TARGETS ${program}
943944
RUNTIME DESTINATION bin)
944945
else()

0 commit comments

Comments
 (0)