Skip to content

Commit da0f2e2

Browse files
authored
Merge pull request #193 from JeffersonLab/makefile_adjustments_MMI
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.
2 parents 3e680f6 + bd30024 commit da0f2e2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

GNUmakefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ ifndef G4SYSTEM
1818
endif
1919

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

2429
PYTHON_CONFIG = python-config

0 commit comments

Comments
 (0)