MantisBT - CMake
View Issue Details
0010352CMakeCPackpublic2010-03-01 11:532016-06-10 14:31
Ryan Pavlik 
Kitware Robot 
normalfeaturealways
closedmoved 
CMake-2-8 
 
0010352: Warn, or don't allow without variable set, when trying to build PACKAGE in a debug configuration on MSVC
The MSVC debug runtime (used in the Debug configuration, but not in the RelWithDebInfo config) is not redistributable, so a package built when the configuration is set to Debug (the default for the visual studio generators) will not be usable on machines without that version of visual studio installed.

It would be good to at least warn when attempting to do this, or to make the package build fail unless an override variable is set (in case, for example, something only works in debug and it will be used on another machine with VS installed).
No tags attached.
related to 0011141closed David Cole InstallRequiredSystemLibraries cannot install just debug libraries 
Issue History
2010-03-01 11:53Ryan PavlikNew Issue
2010-03-01 12:07Ryan PavlikNote Added: 0019666
2010-06-15 11:54Ryan PavlikNote Added: 0021021
2011-01-17 14:40David ColeAssigned To => David Cole
2011-01-17 14:40David ColeStatusnew => assigned
2011-01-17 14:43David ColeNote Added: 0024793
2011-01-17 14:43David ColeRelationship addedrelated to 0011141
2011-02-02 16:54Ryan PavlikNote Added: 0025225
2011-02-04 11:00David ColeNote Added: 0025284
2011-10-26 00:04David ColeAssigned ToDavid Cole =>
2011-10-26 00:04David ColeStatusassigned => backlog
2016-06-10 14:27Kitware RobotNote Added: 0041661
2016-06-10 14:27Kitware RobotStatusbacklog => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:27Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0019666)
Ryan Pavlik   
2010-03-01 12:07   
And actually, it looks like InstallRequiredSystemLibraries does install the debug runtimes, which is apparently not permissable (probably a better reference somewhere than this but it is something: http://blogs.msdn.com/jigarme/archive/2008/05/08/vc-debug-c-runtime-files.aspx [^] ). A more official link: http://msdn.microsoft.com/en-us/library/ms235299.aspx [^]
(0021021)
Ryan Pavlik   
2010-06-15 11:54   
It looks like this is a configurable option now in CMake 2.8.1 - if I understood the code correctly, I think this can be closed.
(0024793)
David Cole   
2011-01-17 14:43   
Ryan,

Do you still think we should warn at build "package" time when building a Debug package with the MS compiler? Or is the control given in InstallRequiredSystemLibraries as of CMake 2.8.4-rc1 sufficient to address this issue?

See also: 0011141
(0025225)
Ryan Pavlik   
2011-02-02 16:54   
Yes, I'm thinking a warning would still be appropriate. The configuration options in the latest InstallRequiredSystemLibraries are useful if you already know this is something to be aware of, but a warning by default might be appreciated.
(0025284)
David Cole   
2011-02-04 11:00   
See also (about not redistributing Debug libraries):
http://msdn.microsoft.com/en-us/library/aa985618 [^]
(0041661)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.