From 06ce06b888c780a39f5e879029949fc98c2576b0 Mon Sep 17 00:00:00 2001 From: Affonso Vieira Date: Fri, 5 Jan 2024 15:24:09 -0800 Subject: [PATCH] Captured cmake result and returned in the end of the bat execution --- cpp/src/flightsql_odbc/flightsql-odbc/build_win32.bat | 4 ++++ cpp/src/flightsql_odbc/flightsql-odbc/build_win64.bat | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cpp/src/flightsql_odbc/flightsql-odbc/build_win32.bat b/cpp/src/flightsql_odbc/flightsql-odbc/build_win32.bat index c7a476d739a29..07b8679d2e700 100644 --- a/cpp/src/flightsql_odbc/flightsql-odbc/build_win32.bat +++ b/cpp/src/flightsql_odbc/flightsql-odbc/build_win32.bat @@ -49,4 +49,8 @@ cmake ..^ cmake --build . --parallel 8 --config Release +set CMAKE_RESULT=%ERRORLEVEL% + cd .. + +exit /b %CMAKE_RESULT% diff --git a/cpp/src/flightsql_odbc/flightsql-odbc/build_win64.bat b/cpp/src/flightsql_odbc/flightsql-odbc/build_win64.bat index ef0d9cc0882ed..5b0883f371bdc 100644 --- a/cpp/src/flightsql_odbc/flightsql-odbc/build_win64.bat +++ b/cpp/src/flightsql_odbc/flightsql-odbc/build_win64.bat @@ -49,4 +49,8 @@ cmake ..^ cmake --build . --parallel 8 --config Release +set CMAKE_RESULT=%ERRORLEVEL% + cd .. + +exit /b %CMAKE_RESULT%