diff --git a/exporters/otlp/CMakeLists.txt b/exporters/otlp/CMakeLists.txt index 228c5cc67f..83b35f16a7 100644 --- a/exporters/otlp/CMakeLists.txt +++ b/exporters/otlp/CMakeLists.txt @@ -489,9 +489,13 @@ if(BUILD_TESTING) if(WITH_OTLP_FILE) add_executable(otlp_file_client_test test/otlp_file_client_test.cc) target_link_libraries( - otlp_file_client_test ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} - ${GMOCK_LIB} opentelemetry_exporter_otlp_file - opentelemetry_otlp_recordable) + otlp_file_client_test + ${GTEST_BOTH_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} + ${GMOCK_LIB} + opentelemetry_exporter_otlp_file + opentelemetry_otlp_recordable + nlohmann_json::nlohmann_json) gtest_add_tests( TARGET otlp_file_client_test TEST_PREFIX exporter.otlp.