<div dir="ltr">Hi Nicolas,<div><br><div>AFAIK </div><div>CPack Archive generators (ZIP, TGZ, etc...) cannot properly handle ABSOLUTE_INSTALL path.</div><div>The 3 install statements:</div><div><br></div><div><div>install(FILES glewlwyd.service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system COMPONENT config)</div><div>install(FILES glewlwyd-init DESTINATION ${CMAKE_INSTALL_PREFIX}/etc/init.d/ RENAME glewlwyd COMPONENT config)</div><div>install(DIRECTORY webapp/ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/glewlwyd/webapp/ COMPONENT runtime)</div></div><div><br></div><div>Use a DESTINATION which is absolute. Thus the issue with archive generator.<br><br class="gmail-Apple-interchange-newline"></div><div>CPackDeb and CPackRPM do handle absolute install path "transparently" because they internally set CPACK_SET_DESTDIR.</div><div><br></div><div>Have a look at </div><div>cmake --help-variable CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION<br></div><div>and</div><div>cmake --help-variable CPACK_SET_DESTDIR<br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-08 15:47 GMT+01:00 Nicolas Mora <span dir="ltr"><<a href="mailto:nicolas@babelouest.org" target="_blank">nicolas@babelouest.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I use a CMakeLists.txt script to build an application which works pretty well so far, except for the tar.gz package build.<br>
<br>
In the install procedure, I copy the application executable, the config files and, SysV init and SystemD service files, and an entire directory.<br>
<br>
In the make install and in the .deb file generated, all those files are correctly installed. But the .tar.gz package only has the executable and the config file, not the rest.<br>
<br>
Can anyone help me point out where my mistake is?<br>
<br>
The script is available here:<br>
<a href="https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt" rel="noreferrer" target="_blank">https://github.com/babelouest/<wbr>glewlwyd/blob/cmake/CMakeLists<wbr>.txt</a><br>
<br>
The install commands that are missing in the .tar.gz package are the following:<br>
<a href="https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt#L211" rel="noreferrer" target="_blank">https://github.com/babelouest/<wbr>glewlwyd/blob/cmake/CMakeLists<wbr>.txt#L211</a><br>
<a href="https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt#L212" rel="noreferrer" target="_blank">https://github.com/babelouest/<wbr>glewlwyd/blob/cmake/CMakeLists<wbr>.txt#L212</a><br>
<a href="https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt#L213" rel="noreferrer" target="_blank">https://github.com/babelouest/<wbr>glewlwyd/blob/cmake/CMakeLists<wbr>.txt#L213</a><br>
<br>
And the .tar.gz package generator commands are here:<br>
<a href="https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt#L252" rel="noreferrer" target="_blank">https://github.com/babelouest/<wbr>glewlwyd/blob/cmake/CMakeLists<wbr>.txt#L252</a><br>
<br>
Thanks in advance<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/list<wbr>info/cmake</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div>
</div>