MantisBT - CMake
View Issue Details
0011806CMakeCCMakepublic2011-02-05 13:332016-06-10 14:31
David Doria 
Kitware Robot 
normalfeatureN/A
closedmoved 
LinuxFedora13
CMake 2.8.3 
 
0011806: CMAKE_BUILD_TYPE should be a drop down box
Currently, you have to manually type one of {None, Debug, Release, RelWithDebInfo, MinSizeRel}. Would it make more sense to choose one of these from a list? Or at the least, throw an error if the string supplied does not match one of those.
No tags attached.
Issue History
2011-02-05 13:33David DoriaNew Issue
2011-02-05 15:09Alex NeundorfNote Added: 0025302
2011-02-05 15:40David DoriaNote Added: 0025303
2011-04-14 14:37David ColeTarget Version => CMake 2.8.5
2011-05-25 17:20David ColeNote Added: 0026600
2011-05-25 17:20David ColeStatusnew => backlog
2011-05-25 17:20David ColeTarget VersionCMake 2.8.5 =>
2011-12-06 19:40David ColeNote Added: 0027930
2011-12-06 19:42David ColeNote Added: 0027931
2016-06-10 14:28Kitware RobotNote Added: 0041795
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0025302)
Alex Neundorf   
2011-02-05 15:09   
For cmake-gui this can be done by setting the STRINGS property of the cache entry:
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "DEBUG;RELEASE;MY_BUILD_TYPE")

Alex
(0025303)
David Doria   
2011-02-05 15:40   
Shouldn't this be the default though, rather than having to add that line to every CMakeLists.txt file?
(0026600)
David Cole   
2011-05-25 17:20   
Not for 2.8.5 - postponing until a future release
(0027930)
David Cole   
2011-12-06 19:40   
See also this blog post:

  http://www.kitware.com/blog/home/post/82 [^]
(0027931)
David Cole   
2011-12-06 19:42   
Another thing to consider about CMAKE_BUILD_TYPE specifically is that some projects use custom values for this entry that are not one of the standard well-known set {None, Debug, Release, RelWithDebInfo, MinSizeRel}...
(0041795)
Kitware Robot   
2016-06-10 14:28   
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.