-
Notifications
You must be signed in to change notification settings - Fork 31
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
Define libiGeom as a dependency of libmcnp2cad if part of a larger pr… #50
Conversation
This change doesn't make sense to me... |
closed by accident! |
Doesn't this just hardcode something we IF'ed out of the flow? |
Don't we just need to make this a hard dependency with |
The problem with using only My thought here is that we now cover the standalone case by using There may be better ways to do this, however. I know CMake has an |
Perhaps it would be better if we used some other trigger. For example, is it possible to have |
I like that better, yeah. Leaves more flexibility for the library name. Updating.. I'll submit another PR to dagmc-trelis setting the |
This definitely seems better - makes me wonder, now, whether we should treat |
Good point. I'm not sure about that... are there clearly defined rules on how those will be found for an externally built iGeom library? Should we be looking at CGM to understand that? |
I'm happy with this for now, we can improve other parts more in the future. |
This fixes a bug I introduced in #43.
The if block here doesn't set
IGEOM_LIB
at all if mcnp2cad is part of a bigger project, so the iGeom library won't be linked (unless you were testing the previous change on in a directory with cached CMake variables like a fool...).This PR addresses that problem by adding iGeom as a dependency of the mcnp2cad library by default. If the project is being configured as a standalone, an external iGeom library must be found.