arrow-cpp: search for Thrift using pkg-config instead of cmake

Setting it to "AUTO" allows for the first[1] find_package to fail
through to pkg-config search logic.

[1] 2ae84e8e90/cpp/cmake_modules/ThirdpartyToolchain.cmake (L228)
This commit is contained in:
Dmitry Kalinkin 2021-10-29 02:01:01 -04:00
parent f00a6fdb82
commit 850930b13f
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -90,6 +90,7 @@ in stdenv.mkDerivation rec {
"-DARROW_BUILD_TESTS=ON"
"-DARROW_VERBOSE_THIRDPARTY_BUILD=ON"
"-DARROW_DEPENDENCY_SOURCE=SYSTEM"
"-DThrift_SOURCE=AUTO" # search for Thrift using pkg-config (ThriftConfig.cmake requires OpenSSL and libevent)
"-DARROW_DEPENDENCY_USE_SHARED=${if enableShared then "ON" else "OFF"}"
"-DARROW_COMPUTE=ON"
"-DARROW_CSV=ON"