-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Updates #59
CMake Updates #59
Conversation
Maybe this was a better place to wonder about a meeting to discuss the build process improvement. @ljacobson64 already contributed #56 with a lot of changes (and a related one in mcnp2cad, I think) |
Yeah after looking at those PR's I think we should have a meeting. I'm good with the majority of the changes in #56 and the related My main issue is that handling of the current Also some of the documentation in #56 should be added to for new discoveries about current (17.1+) SDKs. |
I'm going to ask @bam241 to try and schedule a meeting on this to focus on the vision of how we think this should work. We discussed briefly at a software meeting, but didn't really have the right voices there. |
This is now waiting on #56 to merge. |
@pshriwise could you rebase now that #56 is in ? |
I don't want to speak for Pat, but I'm pretty sure that everything that was in this PR was addressed by #56 |
8a7a83a
to
0de8c4c
Compare
The only thing here that isn't in #56 is the automation of the submodule checkout and update. It's there for convenience. Is it something we want to include? |
Good call, we might want that. Or at least something that checks to see if mcnp2cad is there, and if it's not, to give an error message explaining how to fix it rather than just exiting |
Maybe we shall update L129 to L136 from he README ? as |
this is working super smoothly :) |
@bam241 are you suggesting we simply remove those lines? |
yes I think they are not required (maybe add a mention that state that we are pulling it automatically...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
merging tonight if no-one complains
What happens if you're using a custom mcnp2cad for development purposes? Will the CMake complain that mcnp2cad's commit ID is wrong? |
If there are any uncommitted modifications in the mcnp2cad repo, it will complain b/c git will refuse to discard those changes. Otherwise, it will automatically revert the Custom versions of the I'm honestly kind of hoping we don't have to update the |
thx @pshriwise ! Merging |
Some updates to the CMake here:
Adding the
mcnp2cad
project as a submoduleThis is a pretty clean way to make sure we're getting the version of
mcnp2cad
we need when building this tool. I've added a CMake block that will update this submodule if the MCNP importer is enabled, meaning no additional git commands are needed when cloning the plugin.Place build if
iGeom
beforemcnp2cad
To successfully build the plugin with the mcnp importer enabled, a build with
BUILD_IGEOM=ON
andBUILD_MCNP_IMPORTER=OFF
must first be performed. Building theiGeom
target first (now also aliased asIGEOM_LIB
) allows us to provide this target tomcnp2cad
and perform the build in one step without modifications to the default CMake settings.Note: This PR is dependent on svalinn/mcnp2cad#69