aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-10-22 07:47:05 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-10-22 08:28:24 +0200
commit0be5fb3c9c9d2d68ac3f09bef3afb007bcc4f500 (patch)
tree16d48341dbbcd894565f2bf4781deddbf27f2dd7 /tests/CMakeLists.txt
parentf90eb49488673b99bb9a73c41dae70886542e79e (diff)
downloadcmocka-0be5fb3c9c9d2d68ac3f09bef3afb007bcc4f500.tar.gz
cmocka-0be5fb3c9c9d2d68ac3f09bef3afb007bcc4f500.tar.xz
cmocka-0be5fb3c9c9d2d68ac3f09bef3afb007bcc4f500.zip
cmake: Create a static cmocka library for testing
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index c4eacf2..def90d3 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -39,7 +39,7 @@ foreach(_CMOCKA_TEST ${CMOCKA_TESTS})
add_cmocka_test(${_CMOCKA_TEST}
SOURCES ${_CMOCKA_TEST}.c
COMPILE_OPTIONS ${DEFAULT_C_COMPILE_FLAGS}
- LINK_LIBRARIES cmocka::cmocka
+ LINK_LIBRARIES cmocka::static
LINK_OPTIONS ${DEFAULT_LINK_FLAGS})
target_include_directories(${_CMOCKA_TEST} PRIVATE ${cmocka_BINARY_DIR})