Re: [CMake] CPack and NSIS failure

2012-07-11 Thread David Demelier
On 28/06/2012 11:20, Eric Noulard wrote: 2012/6/27 David Demelier : Thanks for your help, it worked! Now, the last problem, I noticed that CPACK_PACKAGE_EXECUTABLES you can't set an icon, thus I used my own CreateShortCut and Delete with respectively CPACK_NSIS_CREATE_ICONS_EXTRA and CPACK_NSI

Re: [CMake] CPack and NSIS failure

2012-06-28 Thread Eric Noulard
2012/6/27 David Demelier : > > Thanks for your help, it worked! > > Now, the last problem, I noticed that CPACK_PACKAGE_EXECUTABLES you > can't set an icon, thus I used my own CreateShortCut and Delete with > respectively CPACK_NSIS_CREATE_ICONS_EXTRA and > CPACK_NSIS_DELETE_ICONS_EXTRA. The first

Re: [CMake] CPack and NSIS failure

2012-06-27 Thread David Demelier
2012/6/27 Eric Noulard : > 2012/6/27 David Cole : >>> Demelier David >> >> >> You can try: >> >>  set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".") >> >> before you include(CPack). >> >> This bug ( http://public.kitware.com/Bug/view.php?id=7828 ) was >> resolved by adding the CPACK_NSIS_EXECUTABLES_DIRECTO

Re: [CMake] CPack and NSIS failure

2012-06-27 Thread Eric Noulard
2012/6/27 David Cole : >> Demelier David > > > You can try: > >  set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".") > > before you include(CPack). > > This bug ( http://public.kitware.com/Bug/view.php?id=7828 ) was > resolved by adding the CPACK_NSIS_EXECUTABLES_DIRECTORY variable in > this commit: In addi

Re: [CMake] CPack and NSIS failure

2012-06-27 Thread David Cole
On Wed, Jun 27, 2012 at 9:07 AM, David Demelier wrote: > 2012/6/27 David Cole : >> It's because you're using (in essence): >> >>  DESTINATION ${CMAKE_INSTALL_PREFIX} >> >> for your install rules. >> >> Try "DESTINATION ." instead. The DESTINATION is automatically under >> CMAKE_INSTALL_PREFIX when

Re: [CMake] CPack and NSIS failure

2012-06-27 Thread David Demelier
2012/6/27 David Cole : > It's because you're using (in essence): > >  DESTINATION ${CMAKE_INSTALL_PREFIX} > > for your install rules. > > Try "DESTINATION ." instead. The DESTINATION is automatically under > CMAKE_INSTALL_PREFIX when expressed as a relative path. When you > express it as a full abs

Re: [CMake] CPack and NSIS failure

2012-06-27 Thread David Cole
It's because you're using (in essence): DESTINATION ${CMAKE_INSTALL_PREFIX} for your install rules. Try "DESTINATION ." instead. The DESTINATION is automatically under CMAKE_INSTALL_PREFIX when expressed as a relative path. When you express it as a full absolute path, the install rule puts it

[CMake] CPack and NSIS failure

2012-06-27 Thread David Demelier
Hello, I try to use CPack to create a Windows package using NSIS, it fails with: [100%] Built target sd-tris Run CPack packaging tool... CPack: Create package using NSIS CPack: Install projects CPack: - Run preinstall target for: sd-tris CPack: - Install project: sd-tris CPack: Create package CPa