Skip to content

Commit 6415eb0

Browse files
HDFS-16665. Fix duplicate sources for HDFS test (#4573)
* The library target hdfspp_test_shim_static is built using the following sources, which causes duplicate symbols to be defined - - hdfs_shim.c - ${LIBHDFSPP_BINDING_C}/hdfs.cc * ${LIBHDFSPP_BINDING_C}/hdfs.cc is redundant and removing this fixes the issue.
1 parent 4fb799e commit 6415eb0

File tree

1 file changed

+1
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests

1 file changed

+1
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ include_directories (
150150
${CMAKE_CURRENT_SOURCE_DIR}/../../libhdfs-tests/
151151
)
152152

153-
add_library(hdfspp_test_shim_static STATIC $<TARGET_OBJECTS:x_platform_obj> hdfs_shim.c libhdfs_wrapper.c libhdfspp_wrapper.cc ${LIBHDFSPP_BINDING_C}/hdfs.cc)
153+
add_library(hdfspp_test_shim_static STATIC $<TARGET_OBJECTS:x_platform_obj> hdfs_shim.c libhdfs_wrapper.c libhdfspp_wrapper.cc)
154154
add_dependencies(hdfspp_test_shim_static proto)
155155

156156
add_library(hdfspp_test_static STATIC $<TARGET_OBJECTS:x_platform_obj> ${LIBHDFSPP_BINDING_C}/hdfs.cc)

0 commit comments

Comments
 (0)