Skip to content

Commit

Permalink
Remove needles ARROW_ENABLE_THREADING check
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 9, 2023
1 parent a642f82 commit 6234c97
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2114,15 +2114,11 @@ if(ARROW_MIMALLOC)
add_library(mimalloc::mimalloc STATIC IMPORTED)
set_target_properties(mimalloc::mimalloc PROPERTIES IMPORTED_LOCATION
"${MIMALLOC_STATIC_LIB}")
if(ARROW_ENABLE_THREADING)
target_link_libraries(mimalloc::mimalloc INTERFACE Threads::Threads)
endif()
target_include_directories(mimalloc::mimalloc BEFORE
INTERFACE "${MIMALLOC_INCLUDE_DIR}")
target_link_libraries(mimalloc::mimalloc INTERFACE Threads::Threads)
if(WIN32)
set_property(TARGET mimalloc::mimalloc
APPEND
PROPERTY INTERFACE_LINK_LIBRARIES "bcrypt.lib" "psapi.lib")
target_link_libraries(mimalloc::mimalloc INTERFACE "bcrypt.lib" "psapi.lib")
endif()
add_dependencies(mimalloc::mimalloc mimalloc_ep)
add_dependencies(toolchain mimalloc_ep)
Expand Down

0 comments on commit 6234c97

Please sign in to comment.