The branch, master has been updated
       via  2c879a0 cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode
      from  db887c0 Bump version to 1.1.15

https://git.samba.org/?p=nss_wrapper.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 2c879a0ffa70cee33329291d7576ec971d420da2
Author: Andreas Schneider <a...@samba.org>
Date:   Fri Feb 17 17:51:27 2023 +0100

    cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode
    
    Signed-off-by: Andreas Schneider <a...@samba.org>
    Reviewed-by: Pavel Filipenský <pfilipen...@samba.org>

-----------------------------------------------------------------------

Summary of changes:
 tests/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)


Changeset truncated at 500 lines:

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 3b94076..733cc4e 100644
--- 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(TESTSUITE_LIBRARIES nss_utils ${NWRAP_REQUIRED_LIBRARIES} 
${CMOCKA_LIBRARY})
 string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
 


-- 
NSS Wrapper Repository

Reply via email to