link to benchmark directly for tests that aren't link_main_test (#1576)

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 212cfd2..78d6d51 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -45,7 +45,7 @@
 
 macro(compile_benchmark_test name)
   add_executable(${name} "${name}.cc")
-  target_link_libraries(${name} benchmark::benchmark_main ${CMAKE_THREAD_LIBS_INIT})
+  target_link_libraries(${name} benchmark::benchmark ${CMAKE_THREAD_LIBS_INIT})
   if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "NVHPC")
   target_compile_options( ${name} PRIVATE --diag_suppress partial_override )
   endif()