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] https://github.com/apache/arrow/blob/2ae84e8e90a7c0d8cd37df07d69e982dcfd16eaf/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
@@ -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"