<font face="verdana,sans-serif">I was aware of the CMake build for the newer HDF5 releases.<br><br>However, I need this to work for users who are not able/willing to build their own hdf5 libraries from source.<br>Also, it is certainly not a very good option to ask a user to move to a CMake build system and then tell them to hack on a FindHDF5.cmake file just to get a proper link line.  Autotools users scoff at that and tell me that &quot;CMake is too opaque to be usable.&quot;<br>
<br>There should be a way of getting this to work...?<br><br>James<br><br><br></font><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 6:27 AM, Biddiscombe, John A. <span dir="ltr">&lt;<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-GB">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">The latest 1.8.5.x release branch of svn is CMake friendly and
you shouldn’t have this trouble is you’re willing to recompile/install
it</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Something along these lines will work for an installation on
win32 into /program file/HDF5</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal" style=""><b><span style="font-family: &quot;Courier New&quot;;">  FIND_PACKAGE(HDF5 &quot;1.8.5&quot; REQUIRED NO_MODULE
PATHS &quot;$ENV{ProgramFiles}/HDF5&quot;)</span></b><span style="font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">[To fix the problem on the systems without re-installing, just
remove references to hdf5_hl from the FindHDF5 stuff in your cmake installation
module]</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">JB</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">

<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:cmake-bounces@cmake.org" target="_blank">cmake-bounces@cmake.org</a>
[mailto:<a href="mailto:cmake-bounces@cmake.org" target="_blank">cmake-bounces@cmake.org</a>] <b>On Behalf Of </b>James C. Sutherland<br>
<b>Sent:</b> 01 September 2010 00:45<br>
<b>To:</b> cmake<br>
<b>Subject:</b> [CMake] FindHDF5.cmake and the &quot;hl&quot; versions of hdf5
libs</span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<p class="MsoNormal" style="margin-bottom: 12pt;">I typically have full HDF5
installations on my systems but am now going to a system where the
&quot;hl&quot; versions of the hdf5 libraries are not installed.<br>
<br>
Although I don&#39;t need these, it appears that CMake is unwilling to let me
proceed without them.  I get the following error:</p>

<p class="MsoNormal" style="margin-bottom: 12pt;">CMake Error: The following
variables are used in this project, but they are set to NOTFOUND.<br>
Please set them or make sure they are set and tested correctly in the CMake
files:<br>
HDF5_hdf5_hl_LIBRARY_DEBUG (ADVANCED)<br>
    linked by target &quot;tabprops&quot; in directory /uufs/<a href="http://chpc.utah.edu/common/home/u0033394/TabProps/tabprops" target="_blank">chpc.utah.edu/common/home/u0033394/TabProps/tabprops</a><br>
HDF5_hdf5_hl_LIBRARY_RELEASE (ADVANCED)<br>
    linked by target &quot;tabprops&quot; in directory /uufs/<a href="http://chpc.utah.edu/common/home/u0033394/TabProps/tabprops" target="_blank">chpc.utah.edu/common/home/u0033394/TabProps/tabprops</a></p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
By the way, the installed libraries are found:</p>

<p class="MsoNormal">-- Found HDF5:
debug;HDF5_hdf5_hl_LIBRARY_DEBUG-NOTFOUND;/uufs/<a href="http://chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5.a;/uufs/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5_cpp.a;optimized;HDF5_hdf5_hl_LIBRARY_RELEASE-NOTFOUND;/uufs/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5.a;/uufs/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5_cpp.a" target="_blank">chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5.a;/uufs/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5_cpp.a;optimized;HDF5_hdf5_hl_LIBRARY_RELEASE-NOTFOUND;/uufs/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5.a;/uufs/chpc.utah.edu/sys/pkg/hdf5/5-1.6.3-amdopteron/lib/libhdf5_cpp.a</a></p>


<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
My CMakeLists.txt file has the following: </p>

</div>

<blockquote style="border-width: medium medium medium 1pt; border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); padding: 0cm 0cm 0cm 6pt; margin-left: 4.8pt; margin-right: 0cm;">


<p class="MsoNormal">set( HDF5_USE_STATIC_LIBRARIES 1 )<br>
find_package( HDF5 COMPONENTS C CXX )</p>

</blockquote>

</div>

<div>

<p class="MsoNormal"><br>
Any idea of how to get fix this problem? <br>
<br>
James</p>

</div>

</div></div></div>

</div>


</blockquote></div><br><br>