Skip to content

Fixes adding non-existant hdf5 target in codevelop build - #1647

Merged
white238 merged 2 commits into
developfrom
bugfix/white238/hdf5_rebuild
Aug 15, 2026
Merged

Fixes adding non-existant hdf5 target in codevelop build#1647
white238 merged 2 commits into
developfrom
bugfix/white238/hdf5_rebuild

Conversation

@white238

Copy link
Copy Markdown
Member

Fixes #1644

This logic was needed a long time ago and was blindly adding targets that may or may not be there (they weren't in some cases). But good news, the fix is no longer needed as far as I can tell.

@white238
white238 requested review from chapman39 and ebchin and a lite review from Copilot August 14, 2026 23:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes legacy HDF5 “target/name” cache overrides from the codevelop third-party CMake setup to avoid incorrectly forcing HDF5 link inputs (notably hdf5_hl-static) during re-configures, and updates Axom submodule configuration options.

Changes:

  • Deleted historical HDF5 target/variable cache overrides in MFEM configuration.
  • Added AXOM_ENABLE_TUTORIALS=OFF to match other Axom feature disables in codevelop/submodule builds.
  • Minor formatting alignment of existing Axom option settings.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 338 to 342
# Prefix the "check" targets
set(MFEM_CUSTOM_TARGET_PREFIX "mfem_" CACHE STRING "")

# Tweaks needed after Spack converted to the HDF5 CMake build system
# NOTE: we check if an hdf5 target is namespaced or not, since some versions
# of hdf5 do not namespace their targets and others do
set(HDF5_TARGET_NAMES "" CACHE STRING "")
if(TARGET hdf5::hdf5-static)
list(APPEND HDF5_TARGET_NAMES hdf5::hdf5-static)
else()
list(APPEND HDF5_TARGET_NAMES hdf5-static)
endif()
if(TARGET hdf5::hdf5-shared)
list(APPEND HDF5_TARGET_NAMES hdf5::hdf5-shared)
else()
list(APPEND HDF5_TARGET_NAMES hdf5-shared)
endif()

if(TARGET hdf5::hdf5_hl-static)
set(HDF5_C_LIBRARY_hdf5_hl hdf5::hdf5_hl-static CACHE STRING "")
else()
set(HDF5_C_LIBRARY_hdf5_hl hdf5_hl-static CACHE STRING "")
endif()

set(HDF5_IMPORT_CONFIG "RELEASE" CACHE STRING "")

# Add missing include dir to var that MFEM uses
if (CALIPER_FOUND)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhh no.

@white238

Copy link
Copy Markdown
Member Author

I didn't check the turning off Axom tutorials myself but CI will verify that. I am in a hurry to help my parents with something. Feel free to merge.

@white238
white238 merged commit be67bf9 into develop Aug 15, 2026
18 checks passed
@white238
white238 deleted the bugfix/white238/hdf5_rebuild branch August 15, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HDF5 issue in codevelop builds after re-running CMake

5 participants