From e132a152beb380c38961c306b55d457fd3c1c450 Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Tue, 3 Feb 2026 08:19:27 -0500 Subject: [PATCH] fix(mfem): added mfem patch --- subprojects/packagefiles/hypre/CMakeLists.txt | 6 +++ .../mfem/disable_mfem_selfcheck.patch | 41 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 subprojects/packagefiles/hypre/CMakeLists.txt create mode 100644 subprojects/packagefiles/mfem/disable_mfem_selfcheck.patch diff --git a/subprojects/packagefiles/hypre/CMakeLists.txt b/subprojects/packagefiles/hypre/CMakeLists.txt new file mode 100644 index 0000000..8521326 --- /dev/null +++ b/subprojects/packagefiles/hypre/CMakeLists.txt @@ -0,0 +1,6 @@ +# subprojects/packagefiles/hypre/CMakeLists.txt +cmake_minimum_required(VERSION 3.10) +project(hypre-wrapper C CXX) +add_subdirectory(src) + +# This file is just used to redirect to the src directory where hypre stores its CMakeLists.txt \ No newline at end of file diff --git a/subprojects/packagefiles/mfem/disable_mfem_selfcheck.patch b/subprojects/packagefiles/mfem/disable_mfem_selfcheck.patch new file mode 100644 index 0000000..9931390 --- /dev/null +++ b/subprojects/packagefiles/mfem/disable_mfem_selfcheck.patch @@ -0,0 +1,41 @@ +--- mfem/CMakeLists.txt 2025-02-12 15:54:52.454728232 -0500 ++++ CMakeLists.txt.bak 2025-02-12 16:08:06.654542689 -0500 +@@ -765,7 +765,7 @@ + if (MFEM_ENABLE_EXAMPLES) + add_subdirectory(examples) #install examples if enabled + else() +- add_subdirectory(examples EXCLUDE_FROM_ALL) ++ # add_subdirectory(examples EXCLUDE_FROM_ALL) + endif() + + # Create a target for all miniapps and, optionally, enable it. +@@ -774,7 +774,7 @@ + if (MFEM_ENABLE_MINIAPPS) + add_subdirectory(miniapps) #install miniapps if enabled + else() +- add_subdirectory(miniapps EXCLUDE_FROM_ALL) ++ # add_subdirectory(miniapps EXCLUDE_FROM_ALL) + endif() + + # Target to build all executables, i.e. everything. +@@ -801,19 +801,7 @@ + add_dependencies(${MFEM_EXEC_PREREQUISITES_TARGET_NAME} copy_data) + endif() + +-# Add 'check' target - quick test +-set(MFEM_CHECK_TARGET_NAME ${MFEM_CUSTOM_TARGET_PREFIX}check) +-if (NOT MFEM_USE_MPI) +- add_custom_target(${MFEM_CHECK_TARGET_NAME} +- ${CMAKE_CTEST_COMMAND} -R \"^ex1_ser\" -C ${CMAKE_CFG_INTDIR} +- USES_TERMINAL) +- add_dependencies(${MFEM_CHECK_TARGET_NAME} ex1) +-else() +- add_custom_target(${MFEM_CHECK_TARGET_NAME} +- ${CMAKE_CTEST_COMMAND} -R \"^ex1p\" -C ${CMAKE_CFG_INTDIR} +- USES_TERMINAL) +- add_dependencies(${MFEM_CHECK_TARGET_NAME} ex1p) +-endif() ++message(STATUS "MFEM Miniapps and Examples disabled by patch!") + + #------------------------------------------------------------------------------- + # Documentation