Skip to content

Commit 9d76bae

Browse files
committed
fix link
Signed-off-by: Yuan <yuanzhou@apache.org>
1 parent 3555d72 commit 9d76bae

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

cpp/velox/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,24 @@ else()
375375
endif()
376376
target_link_libraries(velox PUBLIC external::geos)
377377

378+
find_package(veloxthrift CONFIG)
379+
if(veloxthrift_FOUND AND TARGET veloxthrift::veloxthrift)
380+
add_library(external::veloxthrift ALIAS veloxthrift::veloxthrift)
381+
else()
382+
message(STATUS "import Velox bundled veloxthrift")
383+
import_library(external::veloxthrift ${VELOX_BUILD_PATH}/velox/dwio/parquet/thrift/libvelox_dwio_parquet_thrift_raw.a)
384+
endif()
385+
target_link_libraries(velox PUBLIC external::veloxthrift)
386+
387+
find_package(thriftprotocol CONFIG)
388+
if(thriftprotocol_FOUND AND TARGET thriftprotocol::thriftprotocol)
389+
add_library(external::thriftprotocol ALIAS thriftprotocol::thriftprotocol)
390+
else()
391+
message(STATUS "import Velox bundled thriftprotocol")
392+
import_library(external::thriftprotocol ${VELOX_BUILD_PATH}/_deps/thrift-build/lib/libthriftprotocol.a)
393+
endif()
394+
target_link_libraries(velox PUBLIC external::thriftprotocol)
395+
378396
find_package(simdjson CONFIG)
379397
if(simdjson_FOUND AND TARGET simdjson::simdjson)
380398
target_link_libraries(velox PUBLIC simdjson::simdjson)

0 commit comments

Comments
 (0)