Fetch DAGMC if not found in cmakelists.txt #3193
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Marked as draft as this PR is mainly to check with @gonuke and @pshriwise if they would be keen on something like this?
Many other packages are included via submodule and they get smoothly installed during the compile so I was looking for ways of making the DAGMC install a bit smoother for users
I was just wondering if it is worth making the inclusion of DAGMC when compiling a little easier by automatically fetching the repo if it is requested and not found locally.
Changes like this to the cmakelists file could allow users to compile with dagmc like this
cmake .. -DOPENMC_USE_DAGMC=ON
This would provide a different route instead of cloning dagmc, compiling dagmc, cloning moab, compiling moab, passing directories to each cmake command etc.
ps this would need a small change in dagmc to fetch moab for this to work and changes in moab to make the repo more compatible with the fetch content. This issue is related
Fixes # (issue)
Checklist