MantisBT - CMake
View Issue Details
0013111CMakeCMakepublic2012-04-07 19:172012-09-03 16:00
Christoph Anton Mitterer 
Brad King 
lowfeaturealways
closedsuspended 
 
 
0013111: allow the option() command to use other binary values than ON/OFF
Hi.

Currently the option command allows only ON and OFF and the CMake UIs then switch between those two.

Please allow the other boolean literals (e.g. TRUE/FALSE, 0/1, YES/NO to be specified.
If they are used, the UIs should obviously also switch between them and not ON/OFF.

The rationale is that for some options(names) e.g. YES/NO fits much better.
Consider you have LIBFOO_ENABLED.... you wouln't say ON/OFF but rather YES/NO or TRUE/FALSE.


Cheers,
Chris.
No tags attached.
Issue History
2012-04-07 19:17Christoph Anton MittererNew Issue
2012-04-09 09:03Brad KingNote Added: 0029093
2012-04-09 09:03Brad KingStatusnew => resolved
2012-04-09 09:03Brad KingResolutionopen => suspended
2012-04-09 09:03Brad KingAssigned To => Brad King
2012-09-03 16:00David ColeNote Added: 0030843
2012-09-03 16:00David ColeStatusresolved => closed

Notes
(0029093)
Brad King   
2012-04-09 09:03   
Issues 0013083, 0013089, 0013090, 0013091, 0013092, 0013109, and 0013111 are all interesting suggestions but the issue tracker is not a good place to discuss them. The user list is a better place for discussion because it may attract interest from others, and in particular from potential contributors. Others may also suggest alternative solutions.
(0030843)
David Cole   
2012-09-03 16:00   
Closing resolved issues that have not been updated in more than 4 months.