[cmake-developers] [CMake 0013111]: allow the option() command to use other binary values than ON/OFF

Mantis Bug Tracker mantis at public.kitware.com
Sat Apr 7 19:17:46 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13111 
====================================================================== 
Reported By:                Christoph Anton Mitterer
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13111
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2012-04-07 19:17 EDT
Last Modified:              2012-04-07 19:17 EDT
====================================================================== 
Summary:                    allow the option() command to use other binary
values than ON/OFF
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-04-07 19:17 Christoph Anton MittererNew Issue                              
     
======================================================================




More information about the cmake-developers mailing list