diff --git a/CMakeLists.txt b/CMakeLists.txt
index f0be18d59d785d52a4a42dd11eb0d6619165b281..ffb160a4861c88aa4a42fe697448cbb14ad1caf9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,9 +37,9 @@ if ( EXISTS $ENV{ROOTSYS} )
      list(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS})
    else() # ROOT was compiled with configure/make
      list(APPEND CMAKE_MODULE_PATH $ENV{ROOTSYS}/etc/cmake)
-   endif() 
-   find_package( ROOT )	
-   if ( ROOT_FOUND )  
+   endif()
+   find_package( ROOT )
+   if ( ROOT_FOUND )
       message("-- Compiling with ROOT: ${ROOT_INCLUDE_DIRS}")
     else()
       message("-- Compiling without ROOT")
@@ -84,8 +84,8 @@ file(GLOB main_sources "main/src/*")
 
 cuda_add_executable(cu_hlt ${main_sources})
 
-if ( ROOT_FOUND ) 
-  target_compile_definitions(cu_hlt PUBLIC WITH_ROOT)	
+if ( ROOT_FOUND )
+  target_compile_definitions(cu_hlt PUBLIC WITH_ROOT)
   target_link_libraries(cu_hlt
     tbb
     Velo
diff --git a/stream/CMakeLists.txt b/stream/CMakeLists.txt
index bd86592e5a778a1726ccd66dc1879c94119aa0c4..536514a5c1d2bc461c93236e6bd476269714a832 100644
--- a/stream/CMakeLists.txt
+++ b/stream/CMakeLists.txt
@@ -38,6 +38,7 @@ cuda_add_library(Stream STATIC
   )
 
 if ( ROOT_FOUND )
+  target_compile_definitions(Stream PUBLIC WITH_ROOT)
   target_link_libraries(Stream
   Velo
   VeloUT
@@ -49,5 +50,3 @@ else()
   VeloUT
   x86VeloUT)
 endif()
-
-