config files will be written in yaml, added a well tested yaml parser to 4DSSE
23 lines
890 B
Meson
23 lines
890 B
Meson
patchFile = files('disable_mfem_selfcheck.patch')
|
|
|
|
patch_check = run_command('grep', '-q', 'MFEM_CHECK_TARGET_NAME', 'subprojects/mfem/CMakeLists.txt', check: false)
|
|
if patch_check.returncode() == 0
|
|
message('Patching MFEM CMakeLists.txt to remove self checks')
|
|
run_command('patch', '-p4', '-d', '../../subprojects/mfem', '-i', patchFile[0].full_path(), check: true)
|
|
else
|
|
message('MFEM CMakeLists.txt already patched')
|
|
endif
|
|
|
|
mfem_cmake_options = cmake.subproject_options()
|
|
mfem_cmake_options.add_cmake_defines({
|
|
'MFEM_ENABLE_EXAMPLES': 'OFF',
|
|
'MFEM_ENABLE_TESTING': 'OFF',
|
|
'MFEM_ENABLE_MINIAPPS': 'OFF',
|
|
'MFEM_USE_BENCMARK': 'OFF',
|
|
})
|
|
|
|
mfem_sp = cmake.subproject(
|
|
'mfem',
|
|
options: mfem_cmake_options)
|
|
mfem_dep = mfem_sp.dependency('mfem')
|
|
add_project_arguments('-I' + meson.current_build_dir() + '/subprojects/mfem/__CMake_build/config', language: 'cpp') |