@@ -90,11 +90,11 @@ target_link_libraries(get_jni_test
9090add_memcheck_test (get_jni get_jni_test )
9191
9292add_executable (remote_block_reader_test remote_block_reader_test.cc )
93- target_link_libraries (remote_block_reader_test test_common reader proto common connection ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
93+ target_link_libraries (remote_block_reader_test test_common reader proto common connection ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
9494add_memcheck_test (remote_block_reader remote_block_reader_test )
9595
9696add_executable (sasl_digest_md5_test sasl_digest_md5_test.cc )
97- target_link_libraries (sasl_digest_md5_test common ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
97+ target_link_libraries (sasl_digest_md5_test common ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
9898add_memcheck_test (sasl_digest_md5 sasl_digest_md5_test )
9999
100100add_executable (retry_policy_test retry_policy_test.cc )
@@ -103,15 +103,15 @@ add_memcheck_test(retry_policy retry_policy_test)
103103
104104include_directories (${CMAKE_CURRENT_BINARY_DIR} )
105105add_executable (rpc_engine_test rpc_engine_test.cc ${PROTO_TEST_SRCS} ${PROTO_TEST_HDRS} )
106- target_link_libraries (rpc_engine_test test_common rpc proto common ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} )
106+ target_link_libraries (rpc_engine_test test_common rpc proto common ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} )
107107add_memcheck_test (rpc_engine rpc_engine_test )
108108
109109add_executable (bad_datanode_test bad_datanode_test.cc )
110- target_link_libraries (bad_datanode_test rpc reader proto fs bindings_c rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
110+ target_link_libraries (bad_datanode_test rpc reader proto fs bindings_c rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
111111add_memcheck_test (bad_datanode bad_datanode_test )
112112
113113add_executable (node_exclusion_test node_exclusion_test.cc )
114- target_link_libraries (node_exclusion_test fs gmock_main common ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} ${SASL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
114+ target_link_libraries (node_exclusion_test fs gmock_main common ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} ${SASL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
115115add_memcheck_test (node_exclusion node_exclusion_test )
116116
117117add_executable (configuration_test $<TARGET_OBJECTS :test_utils > configuration_test.cc )
@@ -125,30 +125,30 @@ target_link_libraries(hdfs_configuration_test common gmock_main ${CMAKE_THREAD_L
125125add_memcheck_test (hdfs_configuration hdfs_configuration_test )
126126
127127add_executable (hdfspp_errors_test hdfspp_errors.cc )
128- target_link_libraries (hdfspp_errors_test common gmock_main bindings_c fs rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
128+ target_link_libraries (hdfspp_errors_test common gmock_main bindings_c fs rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
129129add_memcheck_test (hdfspp_errors hdfspp_errors_test )
130130
131131add_executable (hdfs_builder_test $<TARGET_OBJECTS :test_utils > hdfs_builder_test.cc )
132132target_include_directories (hdfs_builder_test PRIVATE ../lib )
133- target_link_libraries (hdfs_builder_test test_common gmock_main bindings_c fs rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
133+ target_link_libraries (hdfs_builder_test test_common gmock_main bindings_c fs rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
134134add_memcheck_test (hdfs_builder_test hdfs_builder_test )
135135
136136add_executable (logging_test logging_test.cc $<TARGET_OBJECTS :x_platform_obj >)
137137target_include_directories (logging_test PRIVATE ../lib )
138- target_link_libraries (logging_test common gmock_main bindings_c fs rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
138+ target_link_libraries (logging_test common gmock_main bindings_c fs rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} ${SASL_LIBRARIES} gmock_main ${CMAKE_THREAD_LIBS_INIT} )
139139add_memcheck_test (logging_test logging_test )
140140
141141add_executable (hdfs_ioservice_test hdfs_ioservice_test.cc )
142- target_link_libraries (hdfs_ioservice_test fs gmock_main common ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} ${SASL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
142+ target_link_libraries (hdfs_ioservice_test fs gmock_main common ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} ${SASL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
143143add_memcheck_test (hdfs_ioservice hdfs_ioservice_test )
144144
145145add_executable (user_lock_test user_lock_test.cc )
146- target_link_libraries (user_lock_test fs gmock_main common ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} ${SASL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
146+ target_link_libraries (user_lock_test fs gmock_main common ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} ${SASL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
147147add_memcheck_test (user_lock user_lock_test )
148148
149149add_executable (hdfs_config_connect_bugs_test $<TARGET_OBJECTS :test_utils > hdfs_config_connect_bugs.cc )
150150target_include_directories (hdfs_config_connect_bugs_test PRIVATE ../lib )
151- target_link_libraries (hdfs_config_connect_bugs_test common gmock_main bindings_c fs rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} ${SASL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
151+ target_link_libraries (hdfs_config_connect_bugs_test common gmock_main bindings_c fs rpc proto common reader connection ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} ${SASL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
152152add_memcheck_test (hdfs_config_connect_bugs hdfs_config_connect_bugs_test )
153153
154154
@@ -178,22 +178,22 @@ add_dependencies(hdfspp_test_static proto)
178178#TODO: Link against full library rather than just parts
179179
180180build_libhdfs_test (libhdfs_threaded hdfspp_test_shim_static expect.c test_libhdfs_threaded.c ${OS_DIR} /thread.c )
181- link_libhdfs_test (libhdfs_threaded hdfspp_test_shim_static fs reader rpc proto common connection ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} native_mini_dfs ${JAVA_JVM_LIBRARY} ${SASL_LIBRARIES} )
181+ link_libhdfs_test (libhdfs_threaded hdfspp_test_shim_static fs reader rpc proto common connection ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} native_mini_dfs ${JAVA_JVM_LIBRARY} ${SASL_LIBRARIES} )
182182add_libhdfs_test (libhdfs_threaded hdfspp_test_shim_static )
183183
184184build_libhdfs_test (hdfspp_mini_dfs_smoke hdfspp_test_shim_static ${CMAKE_CURRENT_LIST_DIR} /hdfspp_mini_dfs_smoke.cc )
185- link_libhdfs_test (hdfspp_mini_dfs_smoke hdfspp_test_shim_static fs reader rpc proto common connection gmock_main ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} native_mini_dfs ${JAVA_JVM_LIBRARY} ${SASL_LIBRARIES} )
185+ link_libhdfs_test (hdfspp_mini_dfs_smoke hdfspp_test_shim_static fs reader rpc proto common connection gmock_main ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} native_mini_dfs ${JAVA_JVM_LIBRARY} ${SASL_LIBRARIES} )
186186add_libhdfs_test (hdfspp_mini_dfs_smoke hdfspp_test_shim_static )
187187
188188if (NOT MSVC )
189189 build_libhdfs_test (libhdfs_mini_stress_valgrind hdfspp_test_static expect.c test_libhdfs_mini_stress.c ${OS_DIR} /thread.c )
190- link_libhdfs_test (libhdfs_mini_stress_valgrind hdfspp_test_static fs reader rpc proto common connection ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} native_mini_dfs ${JAVA_JVM_LIBRARY} ${SASL_LIBRARIES} )
190+ link_libhdfs_test (libhdfs_mini_stress_valgrind hdfspp_test_static fs reader rpc proto common connection ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} native_mini_dfs ${JAVA_JVM_LIBRARY} ${SASL_LIBRARIES} )
191191 add_memcheck_test (libhdfs_mini_stress_valgrind_hdfspp_test_static libhdfs_mini_stress_valgrind_hdfspp_test_static )
192192 set_target_properties (libhdfs_mini_stress_valgrind_hdfspp_test_static PROPERTIES COMPILE_DEFINITIONS "VALGRIND" )
193193endif (NOT MSVC )
194194
195195build_libhdfs_test (libhdfs_mini_stress hdfspp_test_shim_static expect.c test_libhdfs_mini_stress.c ${OS_DIR} /thread.c )
196- link_libhdfs_test (libhdfs_mini_stress hdfspp_test_shim_static fs reader rpc proto common connection ${PROTOBUF_LIBRARIES} ${OPENSSL_LIBRARIES} native_mini_dfs ${JAVA_JVM_LIBRARY} ${SASL_LIBRARIES} )
196+ link_libhdfs_test (libhdfs_mini_stress hdfspp_test_shim_static fs reader rpc proto common connection ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS} ${ OPENSSL_LIBRARIES} native_mini_dfs ${JAVA_JVM_LIBRARY} ${SASL_LIBRARIES} )
197197add_libhdfs_test (libhdfs_mini_stress hdfspp_test_shim_static )
198198
199199build_libhdfs_test (hdfs_ext hdfspp_test_shim_static ${CMAKE_CURRENT_LIST_DIR} /hdfs_ext_test.cc )
0 commit comments