Skip to content

Commit

Permalink
NANOARROW_DEBUG is a macro, not a CMake option
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Dec 2, 2024
1 parent f9c7166 commit b305d08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 5 additions & 8 deletions cpp/cmake/thirdparty/get_nanoarrow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ function(find_and_configure_nanoarrow)
set(_exclude_from_all EXCLUDE_FROM_ALL TRUE)
endif()

if(NOT CUDF_NANOARROW_DEBUG)
set(_nanoarrow_debug OFF)
else()
set(_nanoarrow_debug ON)
endif()

# Currently we need to always build nanoarrow so we don't pickup a previous installed version
set(CPM_DOWNLOAD_nanoarrow ON)
rapids_cpm_find(
Expand All @@ -35,10 +29,13 @@ function(find_and_configure_nanoarrow)
GIT_REPOSITORY https://github.com/apache/arrow-nanoarrow.git
GIT_TAG e54b7df525fa1d310a96687bd99902823402b26c
GIT_SHALLOW FALSE
OPTIONS "BUILD_SHARED_LIBS OFF" "NANOARROW_NAMESPACE cudf"
"NANOARROW_DEBUG ${_nanoarrow_debug}" ${_exclude_from_all}
OPTIONS "BUILD_SHARED_LIBS OFF" "NANOARROW_NAMESPACE cudf" ${_exclude_from_all}
)
set_target_properties(nanoarrow PROPERTIES POSITION_INDEPENDENT_CODE ON)
if(CUDF_NANOARROW_DEBUG)
target_compile_definitions(nanoarrow PRIVATE NANOARROW_DEBUG=1)
endif()

rapids_export_find_package_root(BUILD nanoarrow "${nanoarrow_BINARY_DIR}" EXPORT_SET cudf-exports)
endfunction()

Expand Down
1 change: 1 addition & 0 deletions cpp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ ConfigureTest(
${ARROW_LIBRARIES}
)
enable_static_checkers(INTEROP_TEST CLANG_TIDY)
target_compile_definitions(INTEROP_TEST PRIVATE NANOARROW_DEBUG=1)

# ##################################################################################################
# * io tests --------------------------------------------------------------------------------------
Expand Down

0 comments on commit b305d08

Please sign in to comment.