File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
test_common/src/http/client/nosend Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if(WITH_HTTP_CLIENT_CURL)
55 set (FILENAME curl_http_test)
66 add_compile_definitions (WITH_CURL)
77 add_executable (${FILENAME} ${FILENAME} .cc)
8- target_link_libraries (${FILENAME} ${GTEST_BOTH_LIBRARIES}
8+ target_link_libraries (${FILENAME} ${GMOCK_LIB} ${ GTEST_BOTH_LIBRARIES}
99 ${CMAKE_THREAD_LIBS_INIT} )
1010
1111 if (TARGET CURL::libcurl)
@@ -24,8 +24,8 @@ endif()
2424
2525set (URL_PARSER_FILENAME url_parser_test)
2626add_executable (${URL_PARSER_FILENAME} ${URL_PARSER_FILENAME} .cc)
27- target_link_libraries (${URL_PARSER_FILENAME} ${GTEST_BOTH_LIBRARIES }
28- ${CMAKE_THREAD_LIBS_INIT} opentelemetry_api )
27+ target_link_libraries (${URL_PARSER_FILENAME} opentelemetry_api ${GMOCK_LIB }
28+ ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
2929gtest_add_tests(
3030 TARGET ${URL_PARSER_FILENAME}
3131 TEST_PREFIX ext .http.urlparser.
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if(${BUILD_TESTING})
2828 endif ()
2929
3030 target_link_libraries (
31- opentelemetry_http_client_nosend ${GTEST_BOTH_LIBRARIES} opentelemetry_ext
32- opentelemetry_test_common)
31+ opentelemetry_http_client_nosend opentelemetry_ext
32+ opentelemetry_test_common ${GMOCK_LIB} ${GTEST_BOTH_LIBRARIES} )
3333
3434endif ()
You can’t perform that action at this time.
0 commit comments