diff --git a/testing/adios2/transform/CMakeLists.txt b/testing/adios2/transform/CMakeLists.txt
index c99f2964056c867be880f00c70fde1b219b9668e..1f8111162515c3dbc40533f6ecd31bcc61031413 100644
--- a/testing/adios2/transform/CMakeLists.txt
+++ b/testing/adios2/transform/CMakeLists.txt
@@ -6,14 +6,14 @@
 
 if(ADIOS2_HAVE_BZip2)
   add_executable(TestBZip2Wrapper TestBZip2Wrapper.cpp)
-  target_link_libraries(TestBZip2Wrapper adios2 gtest gtest_main ${BZIP2_LIBRARIES})
+  target_link_libraries(TestBZip2Wrapper adios2 gtest gtest_main)
 
-  gtest_add_tests(TARGET TestBZip2Wrapper ${BZIP2_LIBRARIES})
+  gtest_add_tests(TARGET TestBZip2Wrapper)
 endif()
 
 if(ADIOS2_HAVE_ZFP)
   add_executable(TestZfpWrapper TestZfpWrapper.cpp)
-  target_link_libraries(TestZfpWrapper adios2 gtest gtest_main zfp::zfp)
+  target_link_libraries(TestZfpWrapper adios2 gtest gtest_main)
 
-  gtest_add_tests(TARGET TestZfpWrapper zfp::zfp)
+  gtest_add_tests(TARGET TestZfpWrapper)
 endif()
\ No newline at end of file