MantisBT - CMake
View Issue Details
0011093CMakeCMakepublic2010-08-04 10:512011-06-06 18:25
Olaf van der Spek 
David Cole 
normalfeaturealways
closedduplicate 
CMake-2-8 
CMake 2.8.4 
0011093: [VS] Support static run-time
Could you add support for using the static run-time in the VS generator?

I'd like to avoid the hack described in http://github.com/rpavlik/physical-modeling-utilities/blob/master/cmake/MSVCStaticRuntime.cmake [^]
No tags attached.
duplicate of 0009445closed Bill Hoffman Ability to select static runtime when use generator for MSVC 
Issue History
2010-08-04 10:51Olaf van der SpekNew Issue
2011-01-17 16:27David ColeAssigned To => David Cole
2011-01-17 16:27David ColeStatusnew => assigned
2011-01-17 16:30David ColeNote Added: 0024822
2011-01-17 16:30David ColeStatusassigned => resolved
2011-01-17 16:30David ColeFixed in Version => CMake 2.8.4
2011-01-17 16:30David ColeResolutionopen => no change required
2011-01-18 04:14Olaf van der SpekNote Added: 0024843
2011-01-18 04:14Olaf van der SpekStatusresolved => feedback
2011-01-18 04:14Olaf van der SpekResolutionno change required => reopened
2011-01-18 11:38David ColeStatusfeedback => assigned
2011-02-03 18:33David ColeRelationship addedduplicate of 0009445
2011-02-03 18:33David ColeStatusassigned => resolved
2011-02-03 18:33David ColeResolutionreopened => duplicate
2011-06-06 18:25David ColeStatusresolved => closed
2011-06-06 18:25David ColeNote Added: 0026692

Notes
(0024822)
David Cole   
2011-01-17 16:30   
Ryan's MSVCStaticRuntime.cmake is not a hack. That's the right way to do this. It's MSVC specific, and can already be done in the CMAKE_CXX_FLAGS quite easily.

The only thing we could do in CMake is provide some variable or property that you set that makes this automatic. But it would still be MSVC specific, unless somebody goes to the next level and says "how can I generalize this to all the compilers that CMake supports"?

If you have a concrete proposal for how this could be generally useful across the set of compilers that CMake supports, by all means, re-open this issue for further discussion.
(0024843)
Olaf van der Spek   
2011-01-18 04:14   
> Ryan's MSVCStaticRuntime.cmake is not a hack. That's the right way to do this.

It's not something I'd like to have in (my) files.

> But it would still be MSVC specific,

That's fine (for me). If later it's needed on another compiler, support for this feature on that compiler could be added at that time. But only if such a generic property is used, not if Ryan's non-hack is used.
(0026692)
David Cole   
2011-06-06 18:25   
Closing resolved issues that have not been updated in more than 3 months.