From c3b01d865ca7312e9fc0dc0d3d7a5a181ed0d409 Mon Sep 17 00:00:00 2001 From: Andrei Astafev Date: Thu, 11 Apr 2024 13:13:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B0=D1=82=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BD=D0=B5=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6?= =?UTF-8?q?=D0=BD=D0=BE=D1=81=D1=82=D0=B8=20=D0=BA=D0=BB=D0=BE=D0=BD=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BF=D1=80=D0=BE=D0=B5?= =?UTF-8?q?=D0=BA=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyxCMake/lib/DownloadContent.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MyxCMake/lib/DownloadContent.cmake b/MyxCMake/lib/DownloadContent.cmake index 9cd4059..259db5b 100644 --- a/MyxCMake/lib/DownloadContent.cmake +++ b/MyxCMake/lib/DownloadContent.cmake @@ -70,7 +70,11 @@ function(myx_download_content NAME) if(ENABLE_DOWNLOAD_CONTENT AND GIT_EXECUTABLE AND ARG_GIT_REPOSITORY) if(NOT IS_DIRECTORY ${WORK_DIR}) execute_process(COMMAND ${GIT_EXECUTABLE} clone ${ARG_GIT_REPOSITORY} ${NAME} - WORKING_DIRECTORY ${ARG_DOWNLOAD_DIR}) + WORKING_DIRECTORY ${ARG_DOWNLOAD_DIR} + RESULT_VARIABLE clone_result) + if(NOT clone_result EQUAL 0) + myx_message_fatal_error("Git can't clone ${NAME} from ${ARG_GIT_REPOSITORY}") + endif() else() if(ARG_AUTOFETCH) execute_process(COMMAND ${GIT_EXECUTABLE} fetch