From 13d9754155f8da0b0d670c8f45d5d5f704c8e373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Schw=C3=B6rer?= Date: Mon, 30 Apr 2018 16:57:08 +0200 Subject: [PATCH] fixed that tests not getting linked against prometheus-cc (#1131) Fixed typo in the CMakeLists file: tests were not linked against prometheus-cc --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ecb0670..629f4c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -194,7 +194,7 @@ foreach(ABS_FIL ${ALL_TESTS}) target_link_libraries("${TEST_TARGET_NAME}" PUBLIC async_grpc) endif() if(${BUILD_PROMETHEUS}) - target_link_libraries(${PROJECT_NAME} PUBLIC prometheus-cpp) + target_link_libraries("${TEST_TARGET_NAME}" PUBLIC prometheus-cpp) endif() endforeach()