Skip to content

Commit

Permalink
Remove MFEM Cmake flags preventing GPU build
Browse files Browse the repository at this point in the history
  • Loading branch information
Heinrich-BR committed Dec 17, 2024
1 parent 7e55f47 commit 180bd73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platypus.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
MFEM_DIR :=$(APPLICATION_DIR)/../mfem/build

include $(MFEM_DIR)/config/config.mk
MFEM_INCLUDES := -I$(MFEM_INC_DIR)/config -I$(MFEM_DIR)/ -I$(MFEM_DIR)/../miniapps/common $(MFEM_INCFLAGS)

# Remove cmake CXX flags
NEW_MFEM_INCFLAGS = $(shell echo "$(MFEM_INCFLAGS)" | sed -E 's/COMPILE_LANGUAGE:CXX>:SHELL:[^>]*>//g')

MFEM_INCLUDES := -I$(MFEM_INC_DIR)/config -I$(MFEM_DIR)/ -I$(MFEM_DIR)/../miniapps/common $(NEW_MFEM_INCFLAGS)
MFEM_LIBS := -L$(MFEM_DIR) -lmfem -lrt -L$(MFEM_DIR)/miniapps/common -lmfem-common $(MFEM_LIB)

ADDITIONAL_INCLUDES += $(MFEM_INCLUDES)
Expand Down

0 comments on commit 180bd73

Please sign in to comment.