<div dir="ltr">Hi Richard,<div><br></div><div style>the solution seems to be elsewhere... </div><div style><br></div><div style>The variables that get propagated to ParaView don&#39;t have necessarily the same names. (I&#39;ve listed the ones that are not using the same name)</div>
<div style><br></div><div style><div>    -DMPI_CXX_LIBRARIES:STRING=${PV_MPI_CXX_LIBRARIES}</div><div>    -DMPI_C_LIBRARIES:STRING=${PV_MPI_C_LIBRARIES}</div><div>    -DMPI_EXTRA_LIBRARY:STRING=${PV_MPI_EXTRA_LIBRARY}</div>
<div>    -DMPI_LIBRARY:FILEPATH=${PV_MPI_LIBRARY}</div><div><br></div><div style>Therefore you may need to duplicate some values and use PV_XXX as key.</div><div style><br></div><div style>Not sure that&#39;s intended, but I tried to set  -DPV_MPI_CXX_LIBRARIES:STRING=&quot;a b c d&quot;</div>
<div style>and it properly get pushed to the ParaView CMakeCache.txt.</div><div style><br></div><div style>Seb</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 13, 2013 at 11:29 AM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think I know what could be happening. Let try a few things here and<br>
I&#39;ll get back to you.<br>
<br>
Utkarsh<br>
<br>
On Thu, Jun 13, 2013 at 8:46 AM, Angelini, Richard C (Rick) CIV USARMY<br>
<div class="HOEnZb"><div class="h5">ARL (US) &lt;<a href="mailto:richard.c.angelini.civ@mail.mil">richard.c.angelini.civ@mail.mil</a>&gt; wrote:<br>
&gt; Thanks for the pointer.   I changed my Superbuild cmake command to pass<br>
&gt; these arguments which I believe now include the correct tags<br>
&gt;<br>
&gt; -DUSE_SYSTEM_mpi=ON \<br>
&gt; -DMPI_CXX:FILEPATH=`which mpicxx` \<br>
&gt; -DMPI_CXX_INCLUDE_PATH:STRING=${CPATH} \<br>
&gt; -DMPI_CXX_LIBRARIES:STRING=&quot;-lmpi -lmpi++ -L${LIBRARY_PATH}&quot; \<br>
&gt; -DMPI_C:FILEPATH=`which mpicc` \<br>
&gt; -DMPI_C_LIBRARIES:STRING=&quot;-lmpi -lmpi++ -L${LIBRARY_PATH}&quot; \<br>
&gt; -DMPI_C_INCLUDE_PATH:STRING=${CPATH} \<br>
&gt; -DMPI_Fortran:FILEPATH=`which mpif90` \<br>
&gt; -DMPI_Fortran_LIBRARIES:STRING=&quot;-lmpi -lmpi++ -L${LIBRARY_PATH}&quot; \<br>
&gt; -DMPI_Fortran_INCLUDE_PATH:STRING=${CPATH} \<br>
&gt;<br>
&gt; In the Build directory, the  CMakeCache.txt file has the correct values:<br>
&gt;<br>
&gt; MPI_C:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
&gt; MPI_CXX:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
&gt; MPI_CXX_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
&gt; MPI_CXX_COMPILE_FLAGS:STRING=<br>
&gt; MPI_CXX_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
&gt; MPI_CXX_LIBRARIES:STRING=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
&gt; MPI_CXX_LINK_FLAGS:STRING=<br>
&gt; MPI_C_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
&gt; MPI_C_COMPILE_FLAGS:STRING=<br>
&gt; MPI_C_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
&gt; MPI_C_LIBRARIES:STRING=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
&gt; MPI_C_LINK_FLAGS:STRING=<br>
&gt; MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND<br>
&gt; MPI_Fortran:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpif90<br>
&gt; MPI_Fortran_INCLUDE_PATH:STRING=/opt/sgi/mpt/mpt-2.07/include:/usr/include<br>
&gt; MPI_Fortran_LIBRARIES:STRING=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
&gt; MPI_LIBRARY:FILEPATH=-lmpi -lmpi++ -L/opt/sgi/mpt/mpt-2.07/lib<br>
&gt;<br>
&gt; However, the in the Build/paraview/src/paraview-build directory, the<br>
&gt; CMakeCache.txt file does not have the correct values:<br>
&gt;<br>
&gt; MPI_CXX_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicxx<br>
&gt; MPI_CXX_COMPILE_FLAGS:STRING=<br>
&gt; MPI_CXX_INCLUDE_PATH:STRING=<br>
&gt; MPI_CXX_LIBRARIES:STRING=<br>
&gt; MPI_CXX_LINK_FLAGS:STRING=<br>
&gt; MPI_C_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpicc<br>
&gt; MPI_C_COMPILE_FLAGS:STRING=<br>
&gt; MPI_C_INCLUDE_PATH:STRING=<br>
&gt; MPI_C_LIBRARIES:STRING=<br>
&gt; MPI_C_LINK_FLAGS:STRING=<br>
&gt; MPI_EXTRA_LIBRARY:STRING=MPI_EXTRA_LIBRARY-NOTFOUND<br>
&gt; MPI_Fortran_COMPILER:FILEPATH=/opt/sgi/mpt/mpt-2.07/bin/mpif90<br>
&gt; MPI_Fortran_COMPILE_FLAGS:STRING=<br>
&gt; MPI_Fortran_INCLUDE_PATH:STRING=<br>
&gt; MPI_Fortran_LIBRARIES:STRING=<br>
&gt; MPI_Fortran_LINK_FLAGS:STRING=<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt; Rick Angelini<br>
&gt;<br>
&gt; USArmy Research Laboratory<br>
&gt; CISD/HPC Architectures Team<br>
&gt; Building 120 Cube 315<br>
&gt; Phone:  410-278-6266<br>
&gt; ________________________________<br>
&gt; From: Utkarsh Ayachit [<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>]<br>
&gt; Sent: Wednesday, June 12, 2013 11:48 AM<br>
&gt; To: Angelini, Richard C (Rick) CIV USARMY ARL (US)<br>
&gt; Cc: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
&gt; Subject: Re: [Paraview] Superbuild: passing compiler flags<br>
&gt;<br>
&gt; Rick,<br>
&gt;<br>
&gt; Can you try using -D arguments with the correct syntax and see if that<br>
&gt; works?<br>
&gt;<br>
&gt; cmake documentation states the following:<br>
&gt;<br>
&gt;       -D &lt;var&gt;:&lt;type&gt;=&lt;value&gt;     = Create a cmake cache entry.<br>
&gt;<br>
&gt; Ensure that you pass each of the -D arguments correctly with &quot;:type&quot; suffix.<br>
&gt; You can identify the type for the variables by running ccmake once and then<br>
&gt; looking at the generated CMakeCache.txt. Also, try quoting the arguments<br>
&gt; with spaces in them, namely MPI_*_LIBRARIES variables.<br>
&gt;<br>
&gt; Utkarsh<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jun 12, 2013 at 11:23 AM, Angelini, Richard C (Rick) CIV USARMY ARL<br>
&gt; (US) &lt;<a href="mailto:richard.c.angelini.civ@mail.mil">richard.c.angelini.civ@mail.mil</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m trying to pass some MPI-related flags through the Superbuild cmake.<br>
&gt;&gt; These flags need to get passed down to the actual Paraview source cmake, but<br>
&gt;&gt; they don&#39;t seem to getting included.   If I run ccmake I can see that the<br>
&gt;&gt; flags have not been set - and if I manually add the flags at that time, the<br>
&gt;&gt; build proceeds.<br>
&gt;&gt;<br>
&gt;&gt; (I&#39;m talking about the MPI_xx) flags being passed via the cmake command<br>
&gt;&gt; line)   I&#39;m using cmake 2.8.11<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/angel/pv-test/${version}_mesa \<br>
&gt;&gt; -Ddownload_location=`pwd`/../Downloads \<br>
&gt;&gt; -DParaView_FROM_GIT=OFF \<br>
&gt;&gt; -DParaView_URL=`pwd`/../Downloads/ParaView-4.0.0-RC3-source.tar.gz \<br>
&gt;&gt; -DCMAKE_BUILD_TYPE=Release \<br>
&gt;&gt; -DENABLE_boost=ON \<br>
&gt;&gt; -DENABLE_cgns=ON \<br>
&gt;&gt; -DENABLE_ffmpeg=ON \<br>
&gt;&gt; -DENABLE_hdf5=ON \<br>
&gt;&gt; -DENABLE_matplotlib=ON \<br>
&gt;&gt; -DENABLE_mesa=ON \<br>
&gt;&gt; -DENABLE_osmesa=OFF \<br>
&gt;&gt; -DENABLE_mpi=ON \<br>
&gt;&gt; -DENABLE_numpy=ON \<br>
&gt;&gt; -DENABLE_paraview=ON \<br>
&gt;&gt; -DENABLE_python=ON \<br>
&gt;&gt; -DENABLE_qt=ON \<br>
&gt;&gt; -DENABLE_silo=ON \<br>
&gt;&gt; -DENABLE_szip=ON \<br>
&gt;&gt; -Dqt_DISABLE_WEBKIT=OFF \<br>
&gt;&gt; -DUSE_SYSTEM_mpi=ON \<br>
&gt;&gt; -DMPI_CXX=mpicxx \<br>
&gt;&gt; -DMPI_CXX_INCLUDE_PATH=${CPATH} \<br>
&gt;&gt; -DMPI_CXX_LIBRARIES=-lmpi -lmpixx -L${LIBRARY_PATH} \<br>
&gt;&gt; -DMPI_C=mpicc \<br>
&gt;&gt; -DMPI_C_LIBRARIES=-lmpi -lmpixx -L${LIBRARY_PATH} \<br>
&gt;&gt; -DMPI_C_INCLUDE_PATH=${CPATH} \<br>
&gt;&gt; ../Source<br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt; Rick Angelini<br>
&gt;&gt;<br>
&gt;&gt; USArmy Research Laboratory<br>
&gt;&gt; CISD/HPC Architectures Team<br>
&gt;&gt; Building 120 Cube 315<br>
&gt;&gt; Phone:  <a href="tel:410-278-6266" value="+14102786266">410-278-6266</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div>