feat(initial): added portable mfem build system

This commit is contained in:
2026-09-05 07:11:05 -04:00
commit 6a54f2625e
49 changed files with 4344 additions and 0 deletions

18
build-check/meson.build Normal file
View File

@@ -0,0 +1,18 @@
message('C compiler: ' + cc.get_id())
message('C++ compiler: ' + cpp.get_id())
if not cpp.has_header('memory') or not cpp.compiles('''
#include <type_traits>
int main() { static_assert(__cplusplus >= 201703L); return 0; }
''', name: 'C++17 language support')
error('MFEM 4.10 requires a C++17-or-newer compiler.')
endif
cmake_program = find_program('cmake', required: true)
# With meson-python, the generated native file pins this to the interpreter
# building the wheel. For command-line builds, PATH controls the selection.
python_build = python_mod.find_installation(required: true, pure: false)
if meson.is_cross_build()
message('Cross build: ' + build_machine.system() + ' -> ' + host_machine.system())
endif