I was also struggling to get cpack to install anywhere else but in /usr when creating a DEB package. The following worked for me:<br><br>set( CMAKE_INSTALL_PREFIX /usr/local/or/where/ever/i/want )<br>set(CPACK_SET_DESTDIR TRUE)<br>
include( CPack )<br><br>Iman<br><br>P.S. Make sure you have 'include( CPack )' after you set the variables.<br><br><div class="gmail_quote">On Sat, Jan 9, 2010 at 5:17 AM, Daniel Stonier <span dir="ltr"><<a href="mailto:d.stonier@gmail.com">d.stonier@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>How does one cpack a deb into a toolchain's location? </div><div><br></div><div>With cmake_install_prefix I can get it to compile and install into the correct place easily for both native builds (/usr/local) and cross-builds (/usr/arm-unknown-linux-gnueabi/usr/local).</div>
<div><br></div><div>However, cpack ignores these settings and also seems to ignore any of the cpack settings...putting everything into /usr.<br></div><div><br></div><div>The variables that dont seem to do anything:<br></div>
<div><br></div><div>CPACK_PACKAGE_INSTALL_DIRECTORY</div><div>CPACK_INSTALL_PREFIX</div><div>CPACK_SET_DESTDIR</div><div><br></div><div>Is there a 'correct' approach to enabling this?<br></div><div><br></div><div>
Regards</div><div>Daniel Stonier</div><div><br></div><font color="#888888">-- <br>Phone : +82-10-5400-3296 (010-5400-3296)<br>HomePage: <a href="http://snorriheim.dnsdojo.com/" target="_blank">http://snorriheim.dnsdojo.com/</a><br>
Yujin Robot: <a href="http://www.yujinrobot.com/" target="_blank">http://www.yujinrobot.com/</a><br>
Projects: <a href="http://snorriheim.dnsdojo.com/redmine/projects" target="_blank">http://snorriheim.dnsdojo.com/redmine/projects</a><br>Embedded Control Libraries: <a href="http://snorriheim.dnsdojo.com/redmine/wiki/ecl" target="_blank">http://snorriheim.dnsdojo.com/redmine/wiki/ecl</a><br>
</font><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 CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>