diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt
index dbba277fa7d225fc245974bafa80cfd6a642a5ee..e7e247573bb88e0c88464bce0076e2740acc7da3 100644
--- a/tutorials/CMakeLists.txt
+++ b/tutorials/CMakeLists.txt
@@ -140,8 +140,12 @@ set(gui_veto fit/fitpanel_playback.C
              tree/tvdemo.C
              eve/*.C)
 
-#---These do not need to run for TMVA
-set (tmva_veto tmva/createData.C)
+if (NOT ROOT_tmva_FOUND)
+  set(tmva_veto tmva/*.C)
+else
+  #---These do not need to run for TMVA
+  set(tmva_veto tmva/createData.C)
+endif()
 
 #---These ones are disabled !!! ------------------------------------
 set(extra_veto