The branch, main has been updated via 295bcbe cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode from f387dad Bump version to 1.0.1
https://git.samba.org/?p=priv_wrapper.git;a=shortlog;h=main - Log ----------------------------------------------------------------- commit 295bcbe9de1fb37531678d482efb12583b77c6d0 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 d33cf15..46147cf 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() + include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} -- Priv Wrapper Repository