(0024554)
|
David Cole
|
2011-01-10 15:23
|
|
Unfortunately, this turns out to be non-trivial to fix, and I do not have enough time to fix it for CMake 2.8.4 -- I am unsetting the target version field, and we'll have to defer this one until later, if ever...
The problem is:
- CPack is aware of the list of components described to it... but it has no knowledge of what files are installed in what component -- that knowledge is available to CMake, but not easily accessible from CPack as-is right now.
- CPACK_PACKAGE_EXECUTABLES is a variable that pairs references to executable files under the CPACK_NSIS_EXECUTABLES_DIRECTORY with display text for their Start Menu items. It knows nothing about components because it pre-dates them.
Unfortunately, this means that you'd have to write code in the NSIS script to this effect:
if (executable file is in component 'x')
if (installing component 'x')
CreateShortCut ... for executable file
if (uninstalling executable file)
Delete (shortcut to executable file)
If there were an easy way to do this, I'd do it... but it doesn't look to me like there is one, and I've run out of time to spend on this before 2.8.4...
|
|