How are you running cpack? What exactly is the command line you&#39;re giving it.<br><br><div class="gmail_quote">On Tue, May 24, 2011 at 12:23 PM, Adriano Gagliardi <span dir="ltr">&lt;<a href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Dear All,<br>
<br>
I&#39;ve built ParaView 3.10.1 on a 64-bit CentOS system without any problems or<br>
errors first time. I&#39;d now like to package this into a tarball using Cpack,<br>
but it is failing on line 44 in cmake_install.cmake with the same error<br>
message but repeated for each folder:<br>
<br>
CMake Error: The end of a CMakeLists file was reached with a FOREACH<br>
statement that was not closed properly. Within the directory:<br>
CMake Error: Error in cmake code at<br>
/usr/people/gagliard/Paraview/ParaView-3.10.1-Release/VTK/Utilities/vtkhdf5/<br>
src/cmake_install.cmake:44:<br>
IF had incorrect arguments: EXISTS &quot;${file}&quot; AND NOT IS_SYMLINK &quot;${file}&quot;<br>
(Unknown arguments specified).<br>
Current CMake stack:<br>
[5]<br>
/usr/people/gagliard/Paraview/ParaView-3.10.1-Release/VTK/Utilities/vtkhdf5/<br>
src/cmake_install.cmake<br>
[4]<br>
/usr/people/gagliard/Paraview/ParaView-3.10.1-Release/VTK/Utilities/vtkhdf5/<br>
cmake_install.cmake<br>
[3]<br>
/usr/people/gagliard/Paraview/ParaView-3.10.1-Release/VTK/Utilities/cmake_in<br>
stall.cmake<br>
[2]<br>
/usr/people/gagliard/Paraview/ParaView-3.10.1-Release/VTK/cmake_install.cmak<br>
e<br>
[1]<br>
/usr/people/gagliard/Paraview/ParaView-3.10.1-Release/cmake_install.cmake<br>
<br>
Then, at the very end there is this:<br>
CMake Error: The end of a CMakeLists file was reached with a FOREACH<br>
statement that was not closed properly. Within the directory:<br>
CMake Error: The end of a CMakeLists file was reached with a FOREACH<br>
statement that was not closed properly. Within the directory:<br>
The end of a CMakeLists file was reached with an IF statement that was not<br>
closed properly.<br>
Within the directory:<br>
The arguments are: EXISTS<br>
&quot;$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/paraview-3.10/ParaViewTargets.cmak<br>
e&quot;<br>
CPack Error: Error when generating package: IceT<br>
<br>
<br>
I&#39;ve tried this after compiling with VTK_USE_RELATIVE_PATHS ON and OFF to<br>
see if it helped. I&#39;ve also switched the CMAKE_SKIP_RPATH flag, but no luck.<br>
<br>
Has anyone else had any issues using cpack with the latest release?<br>
<br>
Thanks,<br>
<br>
Adriano<br>
<br>
===================================<br>
<br>
Adriano Gagliardi MEng PhD<br>
Business Sector Leader<br>
Computational Aerodynamics<br>
Aircraft Research Association Ltd.<br>
Manton Lane<br>
Bedford<br>
<br>
Tel: 01234 32 4644<br>
E-mail: <a href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</a><br>
Url: <a href="http://www.ara.co.uk" target="_blank">www.ara.co.uk</a><br>
<br>
<br>
**********************************************************************<br>
This email contains information that is private and confidential and is intended only for the addressee.<br>
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br>
Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br>
system management and security reasons.<br>
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:<br>
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245<br>
<br>
**********************************************************************<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>
</blockquote></div><br>