<div dir="ltr">DESTDIR will not work with Windows style paths including a "C:". In fact, it may not work at all on Windows. In general, it's a bad idea to force files into a C:/work (or any other non-standard) directory. Windows installers typically default to putting their programs and all of their files into the "C:/Program Files" directory. Some will also install per-user files into each user's My Documents folder.<div>
<br></div><div>The well-supported type of installer produced by the default cpack/NSIS combination is a self-contained directory of files that is installed to an end-user-choosable directory (which happens to default to C:/Program Files)...<br>
<br></div><div>Why do you need to install files to a C:/work directory? Can they not be installed to a "work" sub-directory of your program's installation instead?</div><div><br></div><div>A good Windows program will be entirely self-contained, or depend only on system components that are already there.</div>
<div><br></div><div>You can certainly customize the NSIS script to install files to a particular directory if you must, but I would strongly recommend against it.</div><div><br></div><div><br></div><div>HTH,</div><div>David</div>
<div><br></div><div><br><div class="gmail_quote">On Fri, Aug 8, 2008 at 10:39 AM, Alan W. Irwin <span dir="ltr"><<a href="mailto:irwin@beluga.phys.uvic.ca">irwin@beluga.phys.uvic.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="Wj3C7c">On 2008-08-08 12:10+0400 Slaykovsky Vladimir wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a problem creating packages with cpack when using install commands<br>
with absolute detination value:<br>
<br>
install(TARGETS MyExecutable RUNTIME DESTINATION<br>
c:/work/cmake/cpack_build/install/bin)<br>
<br>
In this case cpack cannot find my target and doesn't include it in package.<br>
If I change detination to relative value like this:<br>
<br>
install(TARGETS MyExecutable RUNTIME DESTINATION bin)<br>
<br>
then MyExecutable is included to package. Please, help, how can I use<br>
absolute install paths with cpack? I've searched for apropriate CPACK_*<br>
configuration option, but found nothing<br>
</blockquote>
<br></div></div>
See <a href="http://public.kitware.com/Bug/view.php?id=4993" target="_blank">http://public.kitware.com/Bug/view.php?id=4993</a> and its resolution<br>
using CPACK_SET_DESTDIR. (Or else search this list for posts concerning<br>
CPACK_SET_DESTDIR.) I haven't actually tried setting<br>
CPACK_SET_DESTDIR to ON myself yet, but I am assured it works.<br>
<br>
Alan<br>
__________________________<br>
Alan W. Irwin<br>
<br>
Astronomical research affiliation with Department of Physics and Astronomy,<br>
University of Victoria (<a href="http://astrowww.phys.uvic.ca" target="_blank">astrowww.phys.uvic.ca</a>).<br>
<br>
Programming affiliations with the FreeEOS equation-of-state implementation<br>
for stellar interiors (<a href="http://freeeos.sf.net" target="_blank">freeeos.sf.net</a>); PLplot scientific plotting software<br>
package (<a href="http://plplot.org" target="_blank">plplot.org</a>); the libLASi project (<a href="http://unifont.org/lasi" target="_blank">unifont.org/lasi</a>); the Loads of<br>
Linux Links project (<a href="http://loll.sf.net" target="_blank">loll.sf.net</a>); and the Linux Brochure Project<br>
(<a href="http://lbproject.sf.net" target="_blank">lbproject.sf.net</a>).<br>
__________________________<br>
<br>
Linux-powered Science<br>
__________________________<br>_______________________________________________<br>
<br>
<br>
CMake mailing list<br>
<br>
<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<br>
<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div></div>