diff --git a/exporters/prometheus/test/CMakeLists.txt b/exporters/prometheus/test/CMakeLists.txt index 0a370a7e1c..385ad83952 100644 --- a/exporters/prometheus/test/CMakeLists.txt +++ b/exporters/prometheus/test/CMakeLists.txt @@ -15,7 +15,7 @@ else() add_executable(${testname} "${testname}.cc") target_link_libraries( ${testname} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} - prometheus_exporter prometheus-cpp::pull) + prometheus_exporter prometheus-cpp::pull opentelemetry_resources) gtest_add_tests( TARGET ${testname} TEST_PREFIX exporter.