Skip to content

Commit

Permalink
apacheGH-35239: [MATLAB] Report error when building the MATLAB Interf…
Browse files Browse the repository at this point in the history
…ace to Arrow in Debug mode on Windows
  • Loading branch information
ShaiviAgarwal2 committed Feb 15, 2024
1 parent b10a1bf commit a4bb157
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,13 @@ endif()

# Check the Build mode on Windows
if(WIN32)
string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_UPPER)
if(CMAKE_BUILD_TYPE_UPPER STREQUAL DEBUG)
if ("${CMAKE_GENERATOR}" MATCHES "Visual Studio")
set(is_debug "$<CONFIG:Debug>")
else()
set(is_debug "${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
endif()

if (is_debug)
message(FATAL_ERROR "Building the MATLAB interface in Debug mode is not supported.")
endif()
endif()
Expand Down

0 comments on commit a4bb157

Please sign in to comment.