From 1bebc3bc5db6e946d358d613830252dcb3ab9529 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 10 Sep 2023 13:51:52 +0200 Subject: [PATCH] Fix build with MDNS disabled --- tests/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b0453d6aa..9d90d86bc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -12,4 +12,7 @@ set(kdeconnect_libraries ecm_add_test(pluginloadtest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) ecm_add_test(sendfiletest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) -ecm_add_test(mdnstest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) + +if(MDNS_ENABLED) + ecm_add_test(mdnstest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) +endif()