I think FindHDF5.cmake needs to be cleaned up. There are occassions when <span style="font-family:arial,sans-serif;font-size:13px">HDF5_HL_LIBRARY gets defined  and other occasions when </span><span style="font-family:arial,sans-serif;font-size:13px">HDF5_hdf5_hl_LIBRARY gets defined. That&#39;s confusing to say the least. I am going to check with the Cmake folks here and try to figure out what&#39;s the right approach.</span><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">In the meantime, if simply using </span><span style="font-family:arial,sans-serif;font-size:13px">HDF5_hdf5_hl_LIBRARY works for you, I can update the if() block to test for both </span><span style="font-family:arial,sans-serif;font-size:13px">HDF5_hdf5_hl_LIBRARY or </span><span style="font-family:arial,sans-serif;font-size:13px">HDF5_HL_LIBRARY. Does that sound reasonable?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">Utkarsh</font></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 4:29 AM, Francois Bissey <span dir="ltr">&lt;<a href="mailto:fbissey@slingshot.co.nz" target="_blank">fbissey@slingshot.co.nz</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">cmake 2.8.9, the wiki says that for 3.98rc1 2.8.8+ is suitable. HDF5_DIR<br>
is not set that&#39;s a system install in standard location (/usr).<br>
This is what ccmake on paraview 3.98rc1 reports:<br>
 HDF5_CXX_COMPILER_EXECUTABLE     HDF5_CXX_COMPILER_EXECUTABLE-NOTFOUND<br>
<br>
 HDF5_C_COMPILER_EXECUTABLE       /usr/bin/h5pcc<br>
<br>
 HDF5_C_INCLUDE_DIR               /usr/include<br>
<br>
 HDF5_DIFF_EXECUTABLE             /usr/bin/h5diff<br>
<br>
 HDF5_DIR                         HDF5_DIR-NOTFOUND<br>
<br>
 HDF5_Fortran_COMPILER_EXECUTAB   /usr/bin/h5pfc<br>
<br>
 HDF5_HL_INCLUDE_DIR              /usr/include<br>
<br>
 HDF5_IS_PARALLEL                 ON<br>
<br>
 HDF5_hdf5_LIBRARY                /usr/lib64/libhdf5.so<br>
<br>
 HDF5_hdf5_LIBRARY_DEBUG          HDF5_hdf5_LIBRARY_DEBUG-NOTFOUND<br>
<br>
 HDF5_hdf5_LIBRARY_RELEASE        /usr/lib64/libhdf5.so<br>
<br>
 HDF5_hdf5_hl_LIBRARY             /usr/lib64/libhdf5_hl.so<br>
<br>
 HDF5_hdf5_hl_LIBRARY_DEBUG       HDF5_hdf5_hl_LIBRARY_DEBUG-NOTFOUND<br>
<br>
 HDF5_hdf5_hl_LIBRARY_RELEASE     /usr/lib64/libhdf5_hl.so<br>
<br>
 HDF5_m_LIBRARY                   /usr/lib64/libm.so<br>
<br>
 HDF5_m_LIBRARY_DEBUG             HDF5_m_LIBRARY_DEBUG-NOTFOUND<br>
<br>
 HDF5_m_LIBRARY_RELEASE           /usr/lib64/libm.so<br>
<br>
 HDF5_rt_LIBRARY                  /usr/lib64/librt.so<br>
<br>
 HDF5_rt_LIBRARY_DEBUG            HDF5_rt_LIBRARY_DEBUG-NOTFOUND<br>
<br>
 HDF5_rt_LIBRARY_RELEASE          /usr/lib64/librt.so<br>
<br>
 HDF5_sz_LIBRARY                  /usr/lib64/libsz.so<br>
<br>
 HDF5_sz_LIBRARY_DEBUG            HDF5_sz_LIBRARY_DEBUG-NOTFOUND<br>
<br>
 HDF5_sz_LIBRARY_RELEASE          /usr/lib64/libsz.so<br>
<br>
 HDF5_z_LIBRARY                   /usr/lib64/libz.so<br>
<br>
 HDF5_z_LIBRARY_DEBUG             HDF5_z_LIBRARY_DEBUG-NOTFOUND<br>
<br>
 HDF5_z_LIBRARY_RELEASE           /usr/lib64/libz.so<br>
<br>
<br>
<br>
I understand that it is very curious since there are no such variables<br>
as HDF5_hdf5_* in FindHDF5.cmake shipped with cmake. A grep on<br>
paraview&#39;s sources suggest that they may originate in the superbuild:<br>
grep -ri hdf5_hdf5 ../ParaView/*<br>
../ParaView/SuperBuild/CMakeLists.txt:<br>
-DHDF5_hdf5_LIBRARY:FILEPATH=${HDF5_LIBRARY}<br>
../ParaView/SuperBuild/CMakeLists.txt:<br>
-DHDF5_hdf5_LIBRARY_RELEASE:FILEPATH=${HDF5_LIBRARY}<br>
../ParaView/SuperBuild/CMakeLists.txt:<br>
-DHDF5_hdf5_hl_LIBRARY:FILEPATH=${HDF5_HL_LIBRARY}<br>
../ParaView/SuperBuild/CMakeLists.txt:<br>
-DHDF5_hdf5_hl_LIBRARY_RELEASE:FILEPATH=${HDF5_HL_LIBRARY})<br>
<br>
And the relevant piece of code in SuperBuild/CMakeLists.txt is here:<br>
# Build HDF5<br>
list(APPEND HDF5_dependencies zlib szip)<br>
list(APPEND ParaView_dependencies HDF5)<br>
include(External_HDF5)<br>
set(HDF5_ARGS<br>
  -DVTK_USE_SYSTEM_HDF5:BOOL=ON<br>
  -DHDF5_DIR:PATH=${HDF5_install}<br>
  -DHDF5_FOUND:BOOL=ON<br>
  -DHDF5_INCLUDE_DIRS:PATH=${HDF5_INCLUDE_DIR}<br>
  -DHDF5_INCLUDE_DIR:PATH=${HDF5_INCLUDE_DIR}<br>
  -DHDF5_LIBRARIES:FILEPATH=${HDF5_LIBRARY};${HDF5_HL_LIBRARY}<br>
  -DHDF5_LIBRARY:FILEPATH=${HDF5_LIBRARY}<br>
  -DHDF5_HL_LIBRARY:FILEPATH=${HDF5_HL_LIBRARY}<br>
  -DHDF5_hdf5_LIBRARY:FILEPATH=${HDF5_LIBRARY}<br>
  -DHDF5_hdf5_LIBRARY_RELEASE:FILEPATH=${HDF5_LIBRARY}<br>
  -DHDF5_hdf5_hl_LIBRARY:FILEPATH=${HDF5_HL_LIBRARY}<br>
  -DHDF5_hdf5_hl_LIBRARY_RELEASE:FILEPATH=${HDF5_HL_LIBRARY})<br>
<br>
Any opinions?<br>
<br>
Francois<br>
<div class="im"><br>
On 16/11/12 09:40, Utkarsh Ayachit wrote:<br>
&gt; What cmake version are you using and what is your HDF5_DIR variable set<br>
&gt; to, if at all?<br>
&gt;<br>
&gt; Utkarsh<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Nov 12, 2012 at 9:45 PM, &lt;<a href="mailto:fbissey@slingshot.co.nz">fbissey@slingshot.co.nz</a><br>
</div><div><div class="h5">&gt; &lt;mailto:<a href="mailto:fbissey@slingshot.co.nz">fbissey@slingshot.co.nz</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Another problem I have now is with system hdf5. I get the following:<br>
&gt;     Disabling NETCDF4 support since HDF5_HL is missing.<br>
&gt;<br>
&gt;     Yet I have hdf5_hl installed and it is detected by cmake as well since<br>
&gt;     HDF%_hdf5_hl_LIBRARY is defined and pointing to the right thing.<br>
&gt;     I believe that the cmake testing logic in<br>
&gt;     VTK/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt<br>
&gt;     is wrong:<br>
&gt;     set (USE_NETCDF4 OFF)<br>
&gt;     if (NOT VTK_USE_SYSTEM_HDF5)<br>
&gt;       # using VTK&#39;s HDF5, we always build that with HL support.<br>
&gt;       set (USE_NETCDF4 ON)<br>
&gt;     elseif(HDF5_HL_LIBRARY)<br>
&gt;       set (USE_NETCDF4 ON)<br>
&gt;     else()<br>
&gt;       message(STATUS &quot;Disabling NETCDF4 support since HDF5_HL is missing.&quot;)<br>
&gt;     endif ()<br>
&gt;<br>
&gt;     HDF5_HL_LIBRARY is the wrong variable to test, it should be<br>
&gt;     HDF5_hdf5_hl_LIBRARY.<br>
&gt;     The change works for me. By the way any chance to be able to use the<br>
&gt;     system<br>
&gt;     netcdf  as debian does in its build (and that I shamelessly copied<br>
&gt;     in Gentoo).<br>
&gt;<br>
&gt;     Francois<br>
&gt;<br>
&gt;     _______________________________________________<br>
</div></div>&gt;     Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;     Visit other Kitware open-source projects at<br>
&gt;     <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt;     Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;     <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt;     Follow this link to subscribe/unsubscribe:<br>
&gt;     <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>