git.samba.org
/
priv_wrapper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode
[priv_wrapper.git]
/
tests
/
CMakeLists.txt
diff --git
a/tests/CMakeLists.txt
b/tests/CMakeLists.txt
index d33cf15929a94a7c877586ebe46f7c8cc0ac470b..46147cf4a25a5901af2828d6b84aa8feecd19328 100644
(file)
--- 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}