File tree 7 files changed +21
-63
lines changed
connectors/hive/storage_adapters/hdfs/tests
dwio/parquet/writer/arrow/tests
7 files changed +21
-63
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,18 @@ find_package_handle_standard_args(lz4 DEFAULT_MSG LZ4_LIBRARY LZ4_INCLUDE_DIR)
21
21
22
22
mark_as_advanced (LZ4_LIBRARY LZ4_INCLUDE_DIR)
23
23
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
+
24
31
if (NOT TARGET lz4::lz4)
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 ()
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} " )
39
38
endif ()
Original file line number Diff line number Diff line change @@ -211,15 +211,10 @@ if(VELOX_ENABLE_ABFS)
211
211
endif ()
212
212
213
213
if (VELOX_ENABLE_HDFS)
214
- find_package (libhdfs3)
215
- if (libhdfs3_FOUND AND TARGET HDFS::hdfs3)
216
- set (LIBHDFS3 HDFS::hdfs3)
217
- else ()
218
- find_library (
219
- LIBHDFS3
220
- NAMES libhdfs3.so libhdfs3.dylib
221
- HINTS "${CMAKE_SOURCE_DIR} /hawq/depends/libhdfs3/_build/src/" REQUIRED)
222
- endif ()
214
+ find_library (
215
+ LIBHDFS3
216
+ NAMES libhdfs3.so libhdfs3.dylib
217
+ HINTS "${CMAKE_SOURCE_DIR} /hawq/depends/libhdfs3/_build/src/" REQUIRED)
223
218
add_definitions (-DVELOX_ENABLE_HDFS3)
224
219
endif ()
225
220
@@ -385,7 +380,7 @@ resolve_dependency(Boost 1.66.0 COMPONENTS ${BOOST_INCLUDE_LIBRARIES})
385
380
# for reference. find_package(range-v3)
386
381
387
382
set_source(gflags)
388
- resolve_dependency(gflags)
383
+ resolve_dependency(gflags COMPONENTS shared )
389
384
if (NOT TARGET gflags::gflags)
390
385
# This is a bit convoluted, but we want to be able to use gflags::gflags as a
391
386
# target even when velox is built as a subproject which uses
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ if(VELOX_ENABLE_ARROW)
27
27
set (ARROW_PREFIX "${CMAKE_CURRENT_BINARY_DIR} /arrow_ep" )
28
28
set (ARROW_CMAKE_ARGS
29
29
-DARROW_PARQUET=ON
30
- -DARROW_FILESYSTEM=ON
31
30
-DARROW_WITH_LZ4=ON
32
31
-DARROW_WITH_SNAPPY=ON
33
32
-DARROW_WITH_ZLIB=ON
@@ -69,7 +68,6 @@ if(VELOX_ENABLE_ARROW)
69
68
arrow_ep
70
69
PREFIX ${ARROW_PREFIX}
71
70
URL ${VELOX_ARROW_SOURCE_URL}
72
- PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR} /arrow_patches/helpers.patch
73
71
URL_HASH ${VELOX_ARROW_BUILD_SHA256_CHECKSUM}
74
72
SOURCE_SUBDIR cpp
75
73
CMAKE_ARGS ${ARROW_CMAKE_ARGS}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ add_executable(velox_process_test TraceContextTest.cpp)
17
17
add_test (velox_process_test velox_process_test)
18
18
19
19
target_link_libraries (velox_process_test PRIVATE velox_process fmt::fmt gtest
20
- gtest_main glog::glog gflags::gflags )
20
+ gtest_main)
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ HdfsMiniCluster::HdfsMiniCluster() {
72
72
" Failed to find minicluster executable {}'" , miniClusterExecutableName);
73
73
}
74
74
boost::filesystem::path hadoopHomeDirectory = exePath_;
75
- hadoopHomeDirectory.remove_filename ().remove_filename ();
75
+ hadoopHomeDirectory.remove_leaf ().remove_leaf ();
76
76
setupEnvironment (hadoopHomeDirectory.string ());
77
77
}
78
78
Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ target_link_libraries(
40
40
gtest_main
41
41
parquet
42
42
arrow
43
- arrow_testing
44
- glog::glog
45
- gflags::gflags)
43
+ arrow_testing)
46
44
47
45
add_library (
48
46
velox_dwio_arrow_parquet_writer_test_lib
You can’t perform that action at this time.
0 commit comments