File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -814,15 +814,19 @@ list(TRANSFORM git_shell_scripts PREPEND "${CMAKE_BINARY_DIR}/")
814814list (TRANSFORM git_perl_scripts PREPEND "${CMAKE_BINARY_DIR } /" )
815815
816816#install
817- install (TARGETS git git-shell
817+ foreach (program ${PROGRAMS_BUILT} )
818+ if (${program} STREQUAL git OR ${program} STREQUAL git-shell)
819+ install (TARGETS ${program}
818820 RUNTIME DESTINATION bin)
821+ else ()
822+ install (TARGETS ${program}
823+ RUNTIME DESTINATION libexec/git-core)
824+ endif ()
825+ endforeach ()
826+
819827install (PROGRAMS ${CMAKE_BINARY_DIR } /git-cvsserver
820828 DESTINATION bin)
821829
822- list (REMOVE_ITEM PROGRAMS_BUILT git git-shell)
823- install (TARGETS ${PROGRAMS_BUILT}
824- RUNTIME DESTINATION libexec/git-core)
825-
826830set (bin_links
827831 git-receive-pack git-upload-archive git-upload-pack)
828832
You can’t perform that action at this time.
0 commit comments