-
Notifications
You must be signed in to change notification settings - Fork 18
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
Pragmatic picking up wrong metis installation #120
Comments
I can't believe this never bit us before, thanks for seeing that. |
No sorry, doesn't seem to work for me. I don't know much about cmake but I found this to work:
This is based on what I saw in other packages with a |
I should clarify "doesn't work for me": it still picks up my system metis in /usr/. |
That looks like what's in the cmake file for eigen, but I don' really understand that... I'll have to read more about Cmake to make sure we're not breaking things for other users, unless @ggorman knows... |
I don't quite understand why your solution works neither why the current one does, after reading the doc: If I read correctly,
Conclusion: I don't understand. This has worked on so many platforms... (Of course I can't be sure it has not always picked the wrong metis, which happened to be miraculously compatible). Are you using a specific version of cmake ? Maybe it's because $ENV{METIS_DIR} is prefixed with ENV ? Or maybe PATHS is missing in out config... I'd love to test these options but it doesn't fail on my machine... |
I'm trying to build pragmatic as part of a petsc build. This is failing because pragmatic's configure picks up my system (/usr/lib) install of metis which conflicts with the one build by petsc. Here's the relevant bit from petsc's configure.log:
The reason it's picking up /usr/lib/x86_64-linux-gnu/libmetis.so.5 is because of the logic in pragmatic's CMake/Modules/FindMetis.cmake which seems to first check for /usr/local/ and /usr before trying METIS_DIR (as provided by petsc).
The text was updated successfully, but these errors were encountered: