File tree Expand file tree Collapse file tree 6 files changed +49
-21
lines changed
third_party/arrow_patches
connectors/hive/storage_adapters/hdfs/tests
dwio/parquet/writer/arrow/tests Expand file tree Collapse file tree 6 files changed +49
-21
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,19 @@ find_package_handle_standard_args(lz4 DEFAULT_MSG LZ4_LIBRARY LZ4_INCLUDE_DIR)
2121
2222mark_as_advanced (LZ4_LIBRARY LZ4_INCLUDE_DIR)
2323
24- get_filename_component (liblz4_ext ${LZ4_LIBRARY} EXT )
25- if (liblz4_ext STREQUAL ".a" )
26- set (liblz4_type STATIC )
27- else ()
28- set (liblz4_type SHARED)
29- endif ()
30-
3124if (NOT TARGET lz4::lz4)
32- add_library (lz4::lz4 ${liblz4_type} IMPORTED )
33- set_target_properties (lz4::lz4 PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
34- "${LZ4_INCLUDE_DIR} " )
35- set_target_properties (
36- lz4::lz4 PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES "C"
37- IMPORTED_LOCATION "${LZ4_LIBRARIES} " )
25+ add_library (lz4::lz4 UNKNOWN IMPORTED )
26+ set_target_properties (lz4::lz4 PROPERTIES
27+ INTERFACE_INCLUDE_DIRECTORIES "${LZ4_INCLUDE_DIR} "
28+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
29+ IMPORTED_LOCATION_RELEASE "${LZ4_LIBRARY_RELEASE} " )
30+ set_property (TARGET lz4::lz4 APPEND PROPERTY
31+ IMPORTED_CONFIGURATIONS RELEASE)
32+
33+ if (LZ4_LIBRARY_DEBUG)
34+ set_property (TARGET lz4::lz4 APPEND PROPERTY
35+ IMPORTED_CONFIGURATIONS DEBUG)
36+ set_property (TARGET lz4::lz4 PROPERTY
37+ IMPORTED_LOCATION_DEBUG "${LZ4_LIBRARY_DEBUG} " )
38+ endif ()
3839endif ()
Original file line number Diff line number Diff line change @@ -213,10 +213,15 @@ if(VELOX_ENABLE_ABFS)
213213endif ()
214214
215215if (VELOX_ENABLE_HDFS)
216- find_library (
217- LIBHDFS3
218- NAMES libhdfs3.so libhdfs3.dylib
219- HINTS "${CMAKE_SOURCE_DIR} /hawq/depends/libhdfs3/_build/src/" REQUIRED)
216+ find_package (libhdfs3)
217+ if (libhdfs3_FOUND AND TARGET HDFS::hdfs3)
218+ set (LIBHDFS3 HDFS::hdfs3)
219+ else ()
220+ find_library (
221+ LIBHDFS3
222+ NAMES libhdfs3.so libhdfs3.dylib
223+ HINTS "${CMAKE_SOURCE_DIR} /hawq/depends/libhdfs3/_build/src/" REQUIRED)
224+ endif ()
220225 add_definitions (-DVELOX_ENABLE_HDFS3)
221226endif ()
222227
@@ -382,7 +387,7 @@ resolve_dependency(Boost 1.66.0 COMPONENTS ${BOOST_INCLUDE_LIBRARIES})
382387# for reference. find_package(range-v3)
383388
384389set_source(gflags)
385- resolve_dependency(gflags COMPONENTS shared )
390+ resolve_dependency(gflags)
386391if (NOT TARGET gflags::gflags)
387392 # This is a bit convoluted, but we want to be able to use gflags::gflags as a
388393 # target even when velox is built as a subproject which uses
Original file line number Diff line number Diff line change 1+ diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake
2+ index 94f926039..f7ebf9233 100644
3+ --- a/cpp/cmake_modules/ThirdpartyToolchain.cmake
4+ +++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake
5+ @@ -2501,13 +2501,9 @@ if(ARROW_WITH_ZSTD)
6+ if(ZSTD_VENDORED)
7+ set(ARROW_ZSTD_LIBZSTD zstd::libzstd_static)
8+ else()
9+ - if(ARROW_ZSTD_USE_SHARED)
10+ - set(ARROW_ZSTD_LIBZSTD zstd::libzstd_shared)
11+ - else()
12+ - set(ARROW_ZSTD_LIBZSTD zstd::libzstd_static)
13+ - endif()
14+ + set(ARROW_ZSTD_LIBZSTD zstd::libzstd_shared)
15+ if(NOT TARGET ${ARROW_ZSTD_LIBZSTD})
16+ - message(FATAL_ERROR "Zstandard target doesn't exist: ${ARROW_ZSTD_LIBZSTD}")
17+ + set(ARROW_ZSTD_LIBZSTD zstd::libzstd_static)
18+ endif()
19+ message(STATUS "Found Zstandard: ${ARROW_ZSTD_LIBZSTD}")
20+ endif()
121diff --git a/cpp/src/arrow/c/helpers.h b/cpp/src/arrow/c/helpers.h
222index a24f272fe..e25f78c85 100644
323--- a/cpp/src/arrow/c/helpers.h
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ add_executable(velox_process_test TraceContextTest.cpp)
1717add_test (velox_process_test velox_process_test)
1818
1919target_link_libraries (velox_process_test PRIVATE velox_process fmt::fmt gtest
20- gtest_main)
20+ gtest_main glog::glog gflags::gflags )
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ HdfsMiniCluster::HdfsMiniCluster() {
7272 " Failed to find minicluster executable {}'" , miniClusterExecutableName);
7373 }
7474 boost::filesystem::path hadoopHomeDirectory = exePath_;
75- hadoopHomeDirectory.remove_leaf ().remove_leaf ();
75+ hadoopHomeDirectory.remove_filename ().remove_filename ();
7676 setupEnvironment (hadoopHomeDirectory.string ());
7777}
7878
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ target_link_libraries(
4040 gtest_main
4141 parquet
4242 arrow
43- arrow_testing)
43+ arrow_testing
44+ glog::glog
45+ gflags::gflags)
4446
4547add_library (
4648 velox_dwio_arrow_parquet_writer_test_lib
You can’t perform that action at this time.
0 commit comments