-
Notifications
You must be signed in to change notification settings - Fork 45
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
Try to clean up logic for finding HDF5 to address Nico's concerns (TriBITS #67) #70
Try to clean up logic for finding HDF5 to address Nico's concerns (TriBITS #67) #70
Conversation
…iBITS TriBITSPub#67) This should have *exactly* the same behavior as before but hopefully now will make it more clear what is happening and why.
Much clearer, thanks! |
Excellent. Then, if you don't mind, can you test the updated Then, if that works out, can you update the I will test the new |
What I meant to say (before accidentally hitting 'Tab' and 'Enter') was: Excellent. Then, if you don't mind, can you test the updated Then, if that works out, can you update the |
I'm getting Trilinos build errors for this right now. Investigating... |
With this patch, the output from CMake is
Unfortunately, those libs aren't added on the link line of
which results in a link error. Everything works fine on TriBits::master. |
I know what the problem is. The issue is that Let me try to reorganize the file so that it works but is also more clear. I will push the new commit. |
I'm hanging tight. :) |
This may not be ideal in Nico's eyes but it works. I am afraid that to clean this up more will require some refactoring (and unit testing) to change how the function TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES() works.
Nico, Pull the updated commit and try it. I tested it locally and it should work. Basically, you can't let the variables I can think of some ways to refactor this code to allow you to leave the variables Let me know if this is acceptable or not. Otherwise, we need to talk about this (over WebEx or Google Hangout) some. |
I just tested it and can confirm it's working. Good to go by me. |
Are you satisfied with the structure of the file? |
It's not clear from the file how TriBits finds the libraries if |
Okay, how TriBITS finds libraries without |
Sounds good to me. |
Hopefully this will be even a little more clear. I will now update the TriBITS docuemntation for this approach.
When you snapshot just the TriBITS/tribits/ directory, you need to have the full copyright file. I am doing this so that I can gut the redundant copyright in a bunch of the TriBITS files to remove clutter, especially the more trivial files.
This file is being used in TribitDevelopersGuilde.rst so we don't want to see this long copyright/license header.
…iBITSPub#67) This structure meets Nico's approval. Hopefully this will be a little more clear when FIND_PACKAGE(<tplName> ...) gets called. I still need to write better documentation for how TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES() behaves. That will come later.
Nico, I have pushed these changes to the github/master branch and snapshotted to Trilinos in the Trilinos commit:
|
@nschloe, take a look at this and see if this seems more clear to you. Hopefully this will address you concerns expressed in #67.