Skip to content

Only export cmake targets internal to Tribol (i.e. don't export MFEM) - #263

Open
chapman39 wants to merge 3 commits into
developfrom
task/chapman39/rm-exporting-externals
Open

chapman39 wants to merge 3 commits into
developfrom
task/chapman39/rm-exporting-externals

Conversation

@chapman39

Copy link
Copy Markdown
Collaborator

avoid exporting MFEM. this creates a lot of issues for downstream users. instead, each project will import the third party libraries they need individually.

related PR:

llnl/axom#2013

@chapman39
chapman39 requested review from ebchin, srwopschall and white238 and a balanced review from Copilot October 15, 2026 21:02
@chapman39 chapman39 self-assigned this Oct 15, 2026
@chapman39
chapman39 marked this pull request as ready for review October 15, 2026 21:02

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.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

2 open findings
What changed in this PR

Updates Tribol’s CMake packaging to avoid exporting MFEM (and other non-Tribol) targets, reducing downstream target/export-set conflicts and forcing consumers to find their own third‑party deps.

Changes:

  • Stop marking MFEM as EXPORTABLE and remove logic that installs/exports MFEM (and Axom-provided targets) into tribol-targets.
  • Adjust tribol-config.cmake.in to import MFEM when it wasn’t built with CMake, instead of relying on exported targets.
  • Update MFEM/Axom target lists used for post-processing (e.g., Apple rpath workaround).
File Description
cmake/​tribol-config.cmake.in Stops relying on exported MFEM targets; imports MFEM when not CMake-built.
cmake/​thirdparty/​SetupMFEM.cmake Prevents MFEM target from being added to Tribol’s export set.
cmake/​SetupThirdParty.cmake Removes installation/export of Axom/MFEM targets and adjusts MFEM target handling lists.

🧠 Review effort: Lite


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

blt_import_library( NAME mfem
INCLUDES "@MFEM_INCLUDE_DIRS@"
TREAT_INCLUDES_AS_SYSTEM ON
DEPENDS_ON "@MFEM_LIBRARIES@")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@white238 i don't think this matters?

Comment thread cmake/SetupThirdParty.cmake Resolved
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.

3 participants