--- test/CMakeLists.txt.orig	2017-02-07 12:14:17 UTC
+++ test/CMakeLists.txt
@@ -14,7 +14,7 @@ endif()
 set(alltests)
 foreach (test msgpuck)
     add_executable(${test}.test ${test}.c test.c)
-    target_link_libraries(${test}.test msgpuck)
+    target_link_libraries(${test}.test msgpuck_shared)
 
     list(APPEND alltests ${test}.test_run)
     add_custom_target(${test}.test_run
