Skip to content

Commit

Permalink
Merge pull request #193 from JeffersonLab/makefile_adjustments_MMI
Browse files Browse the repository at this point in the history
Adjustments to makefile to work with new cmake system of Diracxx.

Merging this one in to facilitate a new tag to be included in a version set that uses the new build system for Diracxx. Have been in contact with @rjones30 on these changes.
  • Loading branch information
markito3 authored Aug 16, 2021
2 parents 3e680f6 + bd30024 commit da0f2e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ ifndef G4SYSTEM
endif

ifdef DIRACXX_HOME
CPPFLAGS += -I$(DIRACXX_HOME)/include -DUSING_DIRACXX -L$(DIRACXX_HOME)/lib -lDirac
DIRACXX_CMAKE := $(shell if [ -f $(DIRACXX_HOME)/CMakeLists.txt ]; then echo true; else echo false; fi)
ifeq ($(DIRACXX_CMAKE), true)
CPPFLAGS += -I$(DIRACXX_HOME)/include -DUSING_DIRACXX -L$(DIRACXX_HOME)/lib -lDirac
else
CPPFLAGS += -I$(DIRACXX_HOME) -DUSING_DIRACXX -L$(DIRACXX_HOME) -lDirac
endif
endif

PYTHON_CONFIG = python-config
Expand Down

0 comments on commit da0f2e2

Please sign in to comment.