diff --git a/platypus.mk b/platypus.mk index a20aad62..f99c8276 100644 --- a/platypus.mk +++ b/platypus.mk @@ -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)