]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/ANALYSISalice/CMakeLists.txt
Correct value for ROOT_HAS*
[u/mrichter/AliRoot.git] / ANALYSIS / ANALYSISalice / CMakeLists.txt
index 3d9963f63b812454f008d6c57779282df2610d69..798c5773edc6aa7af4c451813a979dee8c3e9ef3 100644 (file)
@@ -72,12 +72,25 @@ set(SRCS
     AliXMLCollection.cxx
   )
 
-# If ROOT was build with no AliEn support we disable the AliROOT AliEn support
-if(ROOT_HASALIEN STREQUAL "no")
-    message(STATUS "ROOT was build with no alien support. Disabling AliROOT AliEn support")
+
+# If ROOT has no xml support desabling collections and AliEn support
+if(ROOT_HASXML)
+    set(SRCS ${SRCS}
+         AliTagAnalysis.cxx
+         AliXMLCollection.cxx
+       )
+
+    # If ROOT was build with no AliEn support we disable the AliROOT AliEn support
+    if(ROOT_HASALIEN)
+        set(SRCS ${SRCS} 
+            AliAnalysisAlien.cxx
+        )
+    else()
+        message(STATUS "${MODULE} - ROOT was build with no alien support. Disabling AliROOT AliEn support")
+    endif()
 else()
-    set(SRCS ${SRCS} AliAnalysisAlien.cxx)
-endif(ROOT_HASALIEN STREQUAL "no")
+    message(STATUS "${MODULE} - ROOT was build with no xml support. Disabling XML collection and AliEn support")
+endif()
 
 # Headers from sources
 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")