We cannot use our current one as we are creating PARfiles on one machine
but we are using them on another
# Target for creating PARfile (would stop after the first failed COMMAND)
add_custom_target("${PARMODULE}.par"
COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && cp ${PARSOURCES} ${PARHEADERS} ${PARLINKDEF} ${PARDIR}/
- COMMAND cmake -E copy ${ROOT_ETCDIR}/Makefile.arch ${PARDIR}/
COMMAND tar -C ${PARDIR}/.. -czf ${PARDIR}/../${PARMODULE}.par ${PARMODULE}/
)
# Makefile for @PARMODULE@ -- automatically generated
-# From ROOT
-include Makefile.arch
+# Include this file from the ROOT installed on the system where we are using the PARfile
+include $(shell root-config --etcdir)/Makefile.arch
# Name of this module
PAR_MODULE := @PARMODULE@
PAR_LIBDEPS := @PARLIBDEPS@
# Include paths
-PAR_INCLUDES = -I. -I$(ALICE_ROOT)/include -I$(ALICE_PHYSICS)/include -I$(ROOTSYS)/include
+PAR_INCLUDES = -I. -I$(ALICE_ROOT)/include -I$(ALICE_PHYSICS)/include -I$(shell root-config --incdir)
# Get C++ flags form ROOT
PAR_CXXFLAGS = $(CXXFLAGS) $(PAR_INCLUDES)