Skip to content

Commit

Permalink
configure cwrsync for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pjknowles committed Feb 24, 2024
1 parent 878fadb commit a44e973
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ if (WIN32)
GIT_TAG 6.2.11
)
FetchContent_MakeAvailable(cwrsync)
file(GLOB cwrsync_files ${cwrsync_SOURCE_DIR}/bin/*)
install(FILES ${cwrsync_files} DESTINATION etc/cwrsync/bin)
install(DIRECTORY ${cwrsync_SOURCE_DIR}/ DESTINATION etc/cwrsync PATTERN .git EXCLUDE)
file(WRITE rsync.bat "@set PATH=%~dp0\\..\\etc\\cwrsync\\bin;%PATH%\n")
file(APPEND rsync.bat "@%~dp0\\..\\etc\\cwrsync\\bin\\rsync.exe %*\n")
install(FILES rsync.bat DESTINATION bin)
Expand Down

0 comments on commit a44e973

Please sign in to comment.