From 1419585ea96c095448da2a455580f5905ddd2177 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 17 Dec 2020 12:03:05 +0100 Subject: [PATCH] ci: try msys2 command on windows --- CPack.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CPack.txt b/CPack.txt index 92ea4503..09fb6207 100644 --- a/CPack.txt +++ b/CPack.txt @@ -94,9 +94,15 @@ endif() # keep last include(CPack) +set(PUSH_ARTIFACTS_SH "${CMAKE_SOURCE_DIR}/scripts/push-artifacts.sh") +if(WIN32) + set(PUSH_ARTIFACTS_CMD msys2 -c '${PUSH_ARTIFACTS_SH} ${CPACK_PACKAGE_DIRECTORY}/') +else() + set(PUSH_ARTIFACTS_CMD ${PUSH_ARTIFACTS_SH} ${CPACK_PACKAGE_DIRECTORY}/) +endif() + add_custom_target(push-artifacts - COMMAND - bash ${CMAKE_SOURCE_DIR}/scripts/push-artifacts.sh "${CPACK_PACKAGE_DIRECTORY}/" + COMMAND ${PUSH_ARTIFACTS_CMD} WORKING_DIRECTORY ${CPACK_BINARY_DIR} ) -- 2.30.2