From a3202b5f52b95d0efb2fcbfb78c84811bf28b779 Mon Sep 17 00:00:00 2001 From: Paul Taylor <178183+trxcllnt@users.noreply.github.com> Date: Thu, 25 Jan 2024 09:30:04 -0800 Subject: [PATCH] GH-39778: [C++] Define ARROW_ENABLE_THREADING This PR ensures `-DARROW_ENABLE_THREADING` (added in https://github.com/apache/arrow/pull/35672) is defined in the compile strings. Fixes https://github.com/apache/arrow/issues/39619 --- cpp/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 016cd8a1b9ec..f20d1b691840 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -959,6 +959,7 @@ endif() set(ARROW_SYSTEM_LINK_LIBS) if(ARROW_ENABLE_THREADING) + add_definitions(-DARROW_ENABLE_THREADING) list(APPEND ARROW_SYSTEM_LINK_LIBS Threads::Threads) endif() if(CMAKE_THREAD_LIBS_INIT)