From ceb4039a4c7384210bc900a4e42d49a7a49afa66 Mon Sep 17 00:00:00 2001
From: Howard Butler <hobu.inc@gmail.com>
Date: Mon, 8 Jul 2024 09:07:11 -0500
Subject: [PATCH] Fix CPD compilation of tests when building filters.cpd in
 non-standalone builds

---
 plugins/cpd/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/cpd/CMakeLists.txt b/plugins/cpd/CMakeLists.txt
index ba85e27a72..688d0e8dce 100644
--- a/plugins/cpd/CMakeLists.txt
+++ b/plugins/cpd/CMakeLists.txt
@@ -31,6 +31,7 @@ if(${WITH_TESTS})
         FILES
             test/CpdFilterTest.cpp
         LINK_WITH
+            ${filter_libname}
             Cpd::Library-C++
         INCLUDES
             "${include_dirs}"
