diff --git a/cpp/src/flightsql_odbc/flightsql-odbc/build_win32.bat b/cpp/src/flightsql_odbc/flightsql-odbc/build_win32.bat index c7a476d739a29..32c237c1e4c79 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% \ No newline at end of file diff --git a/cpp/src/flightsql_odbc/flightsql-odbc/build_win64.bat b/cpp/src/flightsql_odbc/flightsql-odbc/build_win64.bat index ef0d9cc0882ed..5c580d554fce1 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% \ No newline at end of file