diff --git a/src/blockforest/CMakeLists.txt b/src/blockforest/CMakeLists.txt
index 70ae336fd413e9107d25a55a3822db6882b3736f..5be89206166c2e638975e3f41265de0fe43cbb44 100644
--- a/src/blockforest/CMakeLists.txt
+++ b/src/blockforest/CMakeLists.txt
@@ -1,11 +1,10 @@
-
 OPTION( WALBERLA_BLOCKFOREST_PRIMITIVE_BLOCKID "BlockForest: enables/disables BlockID implementation as a primitive data type (uint_t)" ON )
 
 mark_as_advanced( WALBERLA_BLOCKFOREST_PRIMITIVE_BLOCKID )
 
 configure_file( CMakeDefs.in.h CMakeDefs.h )
 
-add_library( blockforest ../../tests/timeloop/TimeloopSweepManagementTest.cpp)
+add_library( blockforest )
 target_link_libraries( blockforest PUBLIC communication core domain_decomposition stencil )
 target_sources( blockforest
       PRIVATE
@@ -50,4 +49,4 @@ target_sources( blockforest
       )
 
 add_subdirectory( communication )
-add_subdirectory( loadbalancing )
\ No newline at end of file
+add_subdirectory( loadbalancing )