]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
PAR: pass proper defines for certain ROOT features
authordberzano <dario.berzano@cern.ch>
Wed, 28 Jan 2015 11:46:07 +0000 (12:46 +0100)
committerdberzano <dario.berzano@cern.ch>
Thu, 29 Jan 2015 11:57:52 +0000 (12:57 +0100)
Notably we are passing define variables for XML and AliEn

cmake/PARfiles/Makefile.in

index dbc9441cebf472802da27a4b29a8ee0be2f27bd3..79fbe10258467354bef5b8148026b00153ab33b4 100644 (file)
@@ -18,6 +18,10 @@ PAR_CXXFLAGS = $(CXXFLAGS) $(PAR_INCLUDES)
 # Get linker flags from ROOT
 PAR_SOFLAGS = $(SOFLAGS) $(LDFLAGS)
 
+# Get some ROOT build flags from the current installation
+ROOT_DEFINES += $(shell root-config --features | grep -q xml && echo '-DWITHXML')
+ROOT_DEFINES += $(shell root-config --features | grep -q alien && echo '-DWITHALIEN')
+
 # Exclude generated dictionaries from the list of sources
 SRCS := $(filter-out $(wildcard G__*.cxx),$(wildcard *.cxx))
 
@@ -51,7 +55,7 @@ G__$(PAR_MODULE).h: G__$(PAR_MODULE).cxx
 
 G__$(PAR_MODULE).cxx: $(HDRS) $(DHDR)
        @echo -e "[$(COLM)$(PAR_MODULE)$(COLZ)]" generating dictionary
-       @rootcint -f $@ -c -p $(PAR_INCLUDES) $^
+       @rootcint -f $@ -c -p $(ROOT_DEFINES) $(PAR_INCLUDES) $^
 
 # Generate rootmap (for automatic loading of libraries)
 lib$(PAR_MODULE).rootmap: lib$(PAR_MODULE).so