build(mfem): updated mfem build policy (ensure mfem is build in release mode and with DEBUG off as that can dramatically speed things up)

This commit is contained in:
2026-11-09 13:51:24 -05:00
parent b6e25d28c0
commit 74e55a6859
2 changed files with 54 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
#pragma once
// Meson MFEM policy: buildtype=@BUILD_TYPE@, optimization=@OPTIMIZATION@,
// debug symbols=@DEBUG_SYMBOLS@, NDEBUG=@NDEBUG@.
// This generated header tracks configuration changes for every MFEM consumer.
#ifdef __cplusplus
#include <mfem/config/config.hpp>
#if defined(MFEM_DEBUG) != @MFEM_DEBUG@
#error "MFEM_DEBUG does not match the Meson build; rebuild the MFEM bundle."
#endif
#endif