File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -814,15 +814,19 @@ list(TRANSFORM git_shell_scripts PREPEND "${CMAKE_BINARY_DIR}/")
814
814
list (TRANSFORM git_perl_scripts PREPEND "${CMAKE_BINARY_DIR} /" )
815
815
816
816
#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}
818
820
RUNTIME DESTINATION bin )
821
+ else ()
822
+ install (TARGETS ${program}
823
+ RUNTIME DESTINATION libexec/git-core )
824
+ endif ()
825
+ endforeach ()
826
+
819
827
install (PROGRAMS ${CMAKE_BINARY_DIR} /git-cvsserver
820
828
DESTINATION bin )
821
829
822
- list (REMOVE_ITEM PROGRAMS_BUILT git git-shell )
823
- install (TARGETS ${PROGRAMS_BUILT}
824
- RUNTIME DESTINATION libexec/git-core )
825
-
826
830
set (bin_links
827
831
git-receive-pack git-upload-archive git-upload-pack )
828
832
You can’t perform that action at this time.
0 commit comments