https://git.samba.org/?p=resolv_wrapper.git;a=commit;h=f2e7f58025ecb4cf399494166abea01813b1d0f0 From f2e7f58025ecb4cf399494166abea01813b1d0f0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 17 Feb 2023 17:51:27 +0100 Subject: [PATCH] cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,9 @@ project(tests C) +if (TARGET cmocka::cmocka) + set(CMOCKA_LIBRARY cmocka::cmocka) +endif() + set(TORTURE_LIBRARY torture) # A simple DNS server for testing -- 2.34.1