-
Notifications
You must be signed in to change notification settings - Fork 798
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
allow users to use upstream metis, instead of vendored metis #309
Conversation
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.
1 comment, one question, I'll re-review later
# this will be added to GTSAM_INCLUDE_DIR by gtsam_extra.cmake.in | ||
set(GTSAM_METIS_INCLUDE_FOR_INSTALL "include/gtsam/3rdparty/metis/") | ||
|
||
# The actual include directory (for BUILD cmake target interface): |
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.
delete?
@@ -89,7 +89,11 @@ list(APPEND gtsam_srcs "${PROJECT_BINARY_DIR}/config.h" "${PROJECT_BINARY_DIR}/d | |||
install(FILES "${PROJECT_BINARY_DIR}/config.h" "${PROJECT_BINARY_DIR}/dllexport.h" DESTINATION include/gtsam) | |||
|
|||
if(GTSAM_SUPPORT_NESTED_DISSECTION) | |||
list(APPEND GTSAM_ADDITIONAL_LIBRARIES metis) | |||
if(GTSAM_USE_SYSTEM_METIS) | |||
list(APPEND GTSAM_ADDITIONAL_LIBRARIES ${METIS_LIBRARIES}) |
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.
Hmmm. Can we not make it so that METIS_LIBRARIES points to internal if we use the internal version?
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.
Yeah I think I can do that.
Hey @varunagrawal I'm gonna have to close this PR indefinitely. |
Resolves #220 by allowing the user to use the system metis so as to prevent conflicts from GTSAM's metis and other libraries using the system metis.
Also partially addresses #292
Note: This PR is based on a patch of upstream METIS that has yet to be merged and released in a new METIS version (KarypisLab/METIS#9). Since I went ahead and did this work, I thought I would at least make a PR so that others can see it. When upstream METIS releases a new version, we can then properly merge this in.
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)