I wonder if we should add a separate option (or something similar) that allows users to add arbitrary libs and/or include paths) when using system-anything for that &quot;something&quot; and then users could add any extra libs specific to the external module they are using.<div>
<br></div><div>Utkarsh</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 10:10 AM, Biddiscombe, John A. <span dir="ltr">&lt;<a href="mailto:biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Compile does not work for me because when VTK_USE_S?YSTEM_HDF5 is ON and the external HDF5 is built with parallel support, the hdf5 needs to include the mpi
 directories.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">After quite a lot of painful testing (I wanted to do it the right way rather than just manually adding include_directories and link libs to netcdf, xmf, vtkIOAMR
  …)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I discover that
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">vtk_module(vtkhdf5<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">  DEPENDS<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">    vtkzlib<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">  EXCLUDE_FROM_WRAPPING<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">  )<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">But how do I conditionally say (this would only work for a cmake configured hdf5, not an autoconf one, but that’s a fair compromise for this I think)<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">if(VTK_USE_SYSTEM_HDF5)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">  if (HDF5_ENABLE_PARALLEL)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">    if (NOT PARAVIEW_USE_MPI)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">      MESSAGE(ERROR &quot;System HDF5 uses MPI but PARAVIEW_USE_MPI is ${PARAVIEW_USE_MPI}&quot;)<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">    endif(NOT PARAVIEW_USE_MPI)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">#<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"># In here we need to say conditionally depend on MPI<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"># But how do I add #include paths to the auto generated
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"># set(vtkhdf5_SYSTEM_INCLUDES ${MPI_C_INCLUDE_PATH})<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">  endif (HDF5_ENABLE_PARALLEL)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">endif(VTK_USE_SYSTEM_HDF5)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">When I add the MPI path to the variable, it is overwritten before it gets to the Xdmf,netCDF, subdirs. I can’t find the real place where
 it is set permanently. Seems like the 3<sup>rd</sup> party macro needs extra options to pass in dependent paths like this.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">Any help appreciated.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">Thanks<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">JB<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
</div>
</div>
</div>

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