From eab75612448cedaf833cd09fd312f7d9bf32d7de Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 9 Oct 2024 22:52:25 -0700 Subject: [PATCH] separate the error message from the command --- cmake/tools/SetupGit.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/tools/SetupGit.cmake b/cmake/tools/SetupGit.cmake index 13ac32f6a0..7d2f712481 100644 --- a/cmake/tools/SetupGit.cmake +++ b/cmake/tools/SetupGit.cmake @@ -28,7 +28,7 @@ execute_process( GIT_MERGEBASE_RESULT ) if(NOT GIT_MERGEBASE_RESULT EQUAL 0) - message(${WARNING} "Command failed: ${GIT_MERGEBASE_COMMAND} ${GIT_MERGEBASE_ERROR}") + message(${WARNING} "Command failed: ${GIT_MERGEBASE_COMMAND}" "\n" ${GIT_MERGEBASE_ERROR}) return() endif() @@ -50,7 +50,7 @@ execute_process( ) if(NOT GIT_DIFF_RESULT EQUAL 0) - message(${WARNING} "Command failed: ${GIT_DIFF_COMMAND} ${GIT_DIFF_ERROR}") + message(${WARNING} "Command failed: ${GIT_DIFF_COMMAND}" "\n" ${GIT_DIFF_ERROR}) return() endif()