diff --git a/test/Common/CMakeLists.txt b/test/Common/CMakeLists.txt
index 0e6e222c9614cbd674199faa4c9828f7e759e10d..54ebec0dd0b56c013037518b124172f7117ff7d9 100644
--- a/test/Common/CMakeLists.txt
+++ b/test/Common/CMakeLists.txt
@@ -1,5 +1,5 @@
 foreach(component Record UnitTest)
-  add_library(${component})
+  add_library(${component} OBJECT)
   target_sources(${component} PRIVATE ${component}.cc)
   target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})
   target_link_libraries(${component} PUBLIC cudawrappers::cu)