<html><body><div>&gt;&gt; Is it the case? Is there any file in _CPack_Packages\win32\NSIS\MyProject ?<br>No, there aren't any files<br><br>&gt;&gt; Could you copy/paste the exact message you get and may be running cpack on the command line with ---verbose and --debug.<br><span id="result_box" class="short_text" lang="en"><span class="hps">Sure, but</span> <span class="hps">I</span> <span class="hps">can</span> <span class="hps">only</span> <span class="hps">do so</span> <span class="hps">tomorrow</span></span><br><br>&gt;&gt; Nope normally you don't but what are you doing in your "CPackConfig.cmake.in" ?<br>I only set the CPACK variables and additional variables which are used in the NSIS.template.in file.<br>Because if I don't use the custom CPackConfig.cmake.in file then the variables in the NSIS.template.in files aren't resolved.<br><br>&gt;&gt; And do you have any INSTALL(CODE or INSTALL(SCRIPTS in your project?<br>Yes, i use this for the BundleUtilities like in the BundleUtilities example<br><br><pre>INSTALL(CODE "<br>    file(GLOB_RECURSE SHARED_LIBS<br>      \"\${CMAKE_INSTALL_PREFIX}/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")<br>    include(BundleUtilities)<br>    fixup_bundle(\"${APPS}\" \"\${SHARED_LIBS}\" \"${DIRS}\")<br>    " COMPONENT Runtime)</pre><br>Best Regards<br><br></div><div><br>Am 09. Mai 2012 um 10:55 schrieb Eric Noulard &lt;eric.noulard@gmail.com&gt;:<br><br><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch">2012/5/9 &lt;<a href="mailto:norulez@me.com" data-mce-href="mailto:norulez@me.com">norulez@me.com</a>&gt;:<br> [...]<br> <br> &gt;<br> &gt; If I run the INSTALL target under VS then the files are correctly copied to<br> &gt; C:\Program Files\MyProject<br> &gt; But only the PACKAGE target under VS doesn't work, and I get the message<br> &gt; from the last email I sent.<br> <br> &gt;&gt; So, my custom CPackConfig.cmake.in and my NSIS.template.in seems to work,<br> &gt;&gt; but CPack reports that there are not files (*.* under<br> &gt;&gt; _CPack_Packages\win32\NSIS\MyProject)<br> <br> Is it the case? Is there any file in<br> _CPack_Packages\win32\NSIS\MyProject ?<br> <br> Could you copy/paste the exact message you get and may be<br> running cpack on the command line with ---verbose and --debug.<br> <br> <br> &gt;&gt; I have install statements for the executable and also for the shared<br> &gt;&gt; libraries. What could be the problem?<br> &gt;&gt; Do I need a special setting in CPackConfig.cmake.in or in NSIS.tempalte.in<br> &gt;&gt; to copy the files into the _CPack_Packages subfolder?<br> <br> Nope normally you don't but what are you doing in your "CPackConfig.cmake.in" ?<br> <br> And do you have any INSTALL(CODE or INSTALL(SCRIPTS in your project?<br> <br> <br> -- <br> Erk<br> Le gouvernement représentatif n'est pas la démocratie --<br> <a href="http://www.le-message.org" data-mce-href="http://www.le-message.org">http://www.le-message.org</a><br></div></div></blockquote></div></div></body></html>