<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>I reported this awhile back:<br><br>http://public.kitware.com/Bug/view.php?id=12316<br><br>The patch I attached would work, but it fails in some select cases so it wasn't put in. I don't remember the details, it may fail when there is no HL or something. But you can try it and see if it works for your case.<br><br>Tim<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Eli Ateljevich" <eli@water.ca.gov><br><b>To: </b>cmake@cmake.org<br><b>Sent: </b>Saturday, June 23, 2012 3:57:03 PM<br><b>Subject: </b>[CMake] FindHDF5.cmake configuration -- finds regular, can't find HL<br><br><style><!--
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><div class="WordSection1"><p class="MsoNormal">Hi all,</p><p class="MsoNormal">I am supporting cmake version 2.6. I have included the latest FindHDF5.cmake file I could find in my distro … except for one dependency that needed to be added, this seems to work fine.</p><p class="MsoNormal"> </p><p class="MsoNormal">When I try to find_package(HDF5 COMPONENTS … ) it works for the C (and Fortran) component but not for the HL library or Fortran_HL. Here is the output for the C language HL variant:</p><p class="MsoNormal">-- Found HDF5: HDF5_hdf5_hl_LIBRARY_RELEASE-NOTFOUND;/usr/local/dms/pkg/hdf5/1.8.7-intel12.0-parallel/lib/libhdf5.a;/usr/lib64/libz.so;/usr/lib64/libm.so</p><p class="MsoNormal"> </p><p class="MsoNormal">Could it be cmake is looking for the unadorned libhdf5.a for the regular library and libhdf5-release or something like that for the hl library. Why the difference? If so is this a type of behavior that can be switched off? </p><p class="MsoNormal"> </p><p class="MsoNormal">Here are the contents of the directory, in case the issue of the HL libraries not being there comes up:</p><p class="MsoNormal">$ ls /usr/local/dms/pkg/hdf5/1.8.7-intel12.0-parallel/lib</p><p class="MsoNormal">libhdf5.a libhdf5_hl.a libhdf5_hl.la</p><p class="MsoNormal">libhdf5_fortran.a libhdf5hl_fortran.a libhdf5.la</p><p class="MsoNormal">libhdf5_fortran.la libhdf5hl_fortran.la libhdf5.settings</p><p class="MsoNormal"> </p><p class="MsoNormal">Thanks for any insight. I realize numerous patches have been made to FindHDF5.cmake, and that I might be voiding my warranty by backwards porting it, but it sure seems like it should work for all the components if it works for two of them.</p><p class="MsoNormal"> </p><p class="MsoNormal">Eli</p></div><br>--<br><br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br><br>Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.cmake.org/mailman/listinfo/cmake</div><br></div></body></html>