--- test/CMakeLists.txt.orig	2023-08-28 10:32:04 UTC
+++ test/CMakeLists.txt
@@ -1,7 +1,3 @@
-if(POLICY CMP0037)
-    cmake_policy(SET CMP0037 OLD) # don't blame custom target names
-endif(POLICY CMP0037)
-
 include_directories("../")
 
 #find_program(PROVE prove)
@@ -14,7 +10,7 @@ foreach (test msgpuck)
 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
