From 55d21b081de7dd417cc58765841be9cad1a18861 Mon Sep 17 00:00:00 2001 From: Alessandro Molina Date: Fri, 14 May 2021 15:44:42 -0400 Subject: [PATCH] ARROW-12793: [Python] Fix support for pyarrow debug builds Closes #10324 from amol-/ARROW-12793 Authored-by: Alessandro Molina Signed-off-by: David Li --- cpp/cmake_modules/UseCython.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/cmake_modules/UseCython.cmake b/cpp/cmake_modules/UseCython.cmake index 0d4b17d3e5724..0b65a7842f97f 100644 --- a/cpp/cmake_modules/UseCython.cmake +++ b/cpp/cmake_modules/UseCython.cmake @@ -107,8 +107,9 @@ function(compile_pyx endif() if(NOT WIN32) - if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" - OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo") + string( TOLOWER "${CMAKE_BUILD_TYPE}" build_type ) + if("${build_type}" STREQUAL "debug" + OR "${build_type}" STREQUAL "relwithdebinfo") set(cython_debug_arg "--gdb") endif() endif()