MantisBT - CMake | ||||||||||||||||||||
View Issue Details | ||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||
0007828 | CMake | CPack | public | 2008-10-19 02:13 | 2011-06-06 18:25 | |||||||||||||||
Reporter | Sam Baker | |||||||||||||||||||
Assigned To | David Cole | |||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||
Platform | OS | OS Version | ||||||||||||||||||
Product Version | CMake-2-6 | |||||||||||||||||||
Target Version | CMake 2.8.4 | Fixed in Version | CMake 2.8.4 | |||||||||||||||||
Summary | 0007828: Impossible to create a Nullsoft installer without referencing bin folder | |||||||||||||||||||
Description | As reported to the mailing list, my project has an install that doesn't include a bin folder. An exe and its dlls go in the root directory. The lack of bin folder means that I can't use CPACK_PACKAGE_EXECUTABLES for my executable. However if I don't include CPACK_PACKAGE_EXECUTABLES, then CPACK_NSIS_MENU_LINKS doesn't work. If I add a dummy entry for CPACK_PACKAGE_EXECUTABLES then my menu links show up so that is the workaround that I'm using now. It causes a bogus entry in my start menu folder though. The example install and cpack is below. I'm building with CMake 2.6.2 on Win XP using Visual Studio 2008. # # Configure the install # INSTALL(TARGETS MyApp RUNTIME DESTINATION . LIBRARY DESTINATION . ARCHIVE DESTINATION .) INSTALL(FILES ${MYAPP_ROOT_DIR}/plugins.cfg ${MYAPP_ROOT_DIR}/plugins_debug.cfg DESTINATION .) INSTALL(DIRECTORY ${MYAPP_ROOT_DIR}/assets DESTINATION .) # Add Microsoft runtime set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE) INCLUDE(InstallRequiredSystemLibraries) INSTALL(PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION .) # # Configure the installer # set(CPACK_PACKAGE_NAME "My application") set(CPACK_PACKAGE_VERSION_MAJOR 0) set(CPACK_PACKAGE_VERSION_MINOR 0) set(CPACK_PACKAGE_VERSION_PATCH 1) set(CPACK_PACKAGE_DESCRIPTION_FILE ${MYAPP_ROOT_DIR}/installer/packagedescription.txt) set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "My App") set(CPACK_PACKAGE_INSTALL_DIRECTORY "My App") set(InstallerPath ${MYAPP_ROOT_DIR}/installer/) set(CPACK_RESOURCE_FILE_LICENSE ${InstallerPath}license.txt) set(CPACK_RESOURCE_FILE_WELCOME ${InstallerPath}welcome.txt) set(CPACK_NSIS_MENU_LINKS "./MyApp.exe" "Run the application") set(CPACK_PACKAGE_EXECUTABLES "I AM CONFUSED" "I DO NOTHING") set(CPACK_NSIS_DISPLAY_NAME "Install Application!") set(CPACK_NSIS_CONTACT "sam.baker@bigfishgames.com") SET(CPACK_NSIS_MUI_ICON "${InstallerPath}\\\\logo.ico") SET(CPACK_NSIS_MUI_UNIICON "${InstallerPath}\\\\logored.ico") SET(CPACK_PACKAGE_ICON "${InstallerPath}\\\\logo.bmp") include(CPack) | |||||||||||||||||||
Steps To Reproduce | ||||||||||||||||||||
Additional Information | From David Cole: It appears to be a bug... We'll have to keep supporting the "bin" folder for backwards compatibility, but I think it would be a great feature request to use CPACK_PACKAGE_EXECUTABLES without requiring a "bin" folder. And the CPACK_NSIS_MENU_LINKS should work regardless of use of CPACK_PACKAGE_EXECUTABLES. Would you be willing to submit a bug and a feature request to the bug tracker on these two issues? If you have time, great, do it and assign them to me. Otherwise, I will try to put these into the bug tracker and/or fix them in the CMake code base. Thanks for the report, David Cole | |||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||
Relationships |
| |||||||||||||||||||
Attached Files | ||||||||||||||||||||
Issue History | ||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||
2008-10-19 02:13 | Sam Baker | New Issue | ||||||||||||||||||
2008-10-20 10:25 | David Cole | Status | new => assigned | |||||||||||||||||
2008-10-20 10:25 | David Cole | Assigned To | => David Cole | |||||||||||||||||
2009-01-14 06:30 | daedalusfall | Note Added: 0014552 | ||||||||||||||||||
2009-01-16 00:23 | Sam Baker | Note Added: 0014581 | ||||||||||||||||||
2009-02-19 11:05 | David Cole | Note Added: 0015219 | ||||||||||||||||||
2009-02-19 11:05 | David Cole | Severity | major => minor | |||||||||||||||||
2010-11-10 21:09 | David Cole | Target Version | => CMake 2.8.4 | |||||||||||||||||
2010-12-14 18:59 | David Cole | Relationship added | has duplicate 0010591 | |||||||||||||||||
2011-01-06 09:07 | Mike McQuaid | Note Added: 0024455 | ||||||||||||||||||
2011-01-06 17:05 | David Cole | Note Added: 0024499 | ||||||||||||||||||
2011-01-07 14:34 | David Cole | Relationship added | related to 0010644 | |||||||||||||||||
2011-01-07 14:48 | David Cole | Note Added: 0024510 | ||||||||||||||||||
2011-01-07 14:48 | David Cole | Status | assigned => resolved | |||||||||||||||||
2011-01-07 14:48 | David Cole | Fixed in Version | => CMake 2.8.4 | |||||||||||||||||
2011-01-07 14:48 | David Cole | Resolution | open => fixed | |||||||||||||||||
2011-01-07 17:38 | David Cole | Relationship added | related to 0007829 | |||||||||||||||||
2011-06-06 18:25 | David Cole | Status | resolved => closed | |||||||||||||||||
2011-06-06 18:25 | David Cole | Note Added: 0026702 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|