Skip to content

Commit

Permalink
Re-adjust to use newly-fixed Diracxx CMakelist. Find include and lib …
Browse files Browse the repository at this point in the history
…directories under

DIRACXX_HOME directory.
  • Loading branch information
markito3 committed Aug 16, 2021
1 parent 64c941f commit bd30024
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ ifndef G4SYSTEM
endif

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

0 comments on commit bd30024

Please sign in to comment.