Skip to content
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

use FIND_PACKAGE(HDF5) #59

Closed
wants to merge 1 commit into from
Closed

use FIND_PACKAGE(HDF5) #59

wants to merge 1 commit into from

Conversation

nschloe
Copy link
Contributor

@nschloe nschloe commented Apr 7, 2015

No description provided.

@nschloe
Copy link
Contributor Author

nschloe commented Apr 21, 2015

I just tested this with several versions of Debian and Ubuntu and this patch indeed makes finding the HDF5 libraries more robust. Specifically, TriBits doesn't work for Ubuntu Vivid and beyond since the libraries were slightly renamed here.

@bartlettroscoe
Copy link
Member

Nico,

As described in #67, we need to make some changes to the way that updated FindTPL<TPLNAME>.cmake modules behave. In addition, to we will need to add arguments to FIND_PACKAGE(HDF5) to also find hdf5_fortran when Fortran is enabled. That will be needed to maintain backward compatibility, right?

bartlettroscoe pushed a commit to bartlettroscoe/TriBITS that referenced this pull request May 6, 2015
…SPub#59 and TriBITSPub#67)

Now it only calls FIND_PACKAGE(HDF5 ...) when TPL_HDF5_INCLUDE_DIRS and
TPL_HDF5_LIBRARIES are not set.  This skips the find when there is an
override.  This will avoid some confusion I would think.

I also added logic so FIND_PACKAGE(HDF5 ...) will to also find hdf5_fortran
when HDF5_REQUIRE_FORTRAN is TRUE.  This should match existing behavior
perfectly when the user does not set any of the cache vars.  The creates a
better default find operation.

This will get refactored more as part of TriBITS TriBITSPub#59 before it is finished.
bartlettroscoe pushed a commit to bartlettroscoe/TriBITS that referenced this pull request May 6, 2015
…riBITS TriBITSPub#59 and TriBITSPub#67)

With this update, FindTPLHDF5.cmake should maintain good backward
compatibility but will still call FIND_PACKAGE(HDF5 ...) by default if the
user does nothing.
@bartlettroscoe
Copy link
Member

Nico, look at the branch findpackage-hdf5 in my git repo. That should address all of the issues mentioned in #67. I have tested this with Trilinos and CASL VERA and it works as it should. That is, by default, if you don't specify anything, it will call FIND_PACKAGE(HDF5 ...) and it will look for hdf5_fortran if requested.

If I don't hear from you pretty quick, I will go ahead and push this.

bartlettroscoe pushed a commit that referenced this pull request May 7, 2015
Now it only calls FIND_PACKAGE(HDF5 ...) when TPL_HDF5_INCLUDE_DIRS and
TPL_HDF5_LIBRARIES and other TPL find variables are not set (see TriBITS #67).
This skips the find when there is an override.  This will avoid some confusion
I would think.

I also added logic so FIND_PACKAGE(HDF5 ...) will to also find hdf5_fortran
when HDF5_REQUIRE_FORTRAN is TRUE.  This should match existing behavior
perfectly when the user does not set any of the cache vars.  The creates a
better default find operation.

With this update, FindTPLHDF5.cmake should maintain good backward
compatibility but will still call FIND_PACKAGE(HDF5 ...) by default if the
user does nothing.  Win win.
@bartlettroscoe bartlettroscoe added this to the 4_in_review milestone May 7, 2015
@bartlettroscoe bartlettroscoe self-assigned this May 7, 2015
@bartlettroscoe
Copy link
Member

I have pushed the updated FindTPLHDF5.cmake file to the master branch and snapshotted to Trilinos. See #67 for details.

I am giving this to you to review @nschloe.

@nschloe
Copy link
Contributor Author

nschloe commented May 9, 2015

Closing this in favor of commit 2e44739.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants