[CMake] elseif request

Brandon J. Van Every bvanevery at gmail.com
Mon Sep 18 22:43:25 EDT 2006


David C Thompson wrote:
> What if you named the construct something other than ELSEIF? For
> instance:
>
>   ONEOF( LABEL )
>     CONDITION( cond_1 )
>       statements here if cond_1 is true
>     OR_CONDITION( cond_2 )
>       statements here if cond_1 is false and cond_2 is true
>     ... (more OR_CONDITION statements possible) ...
>     OTHERWISE()
>       statements here if cond_1 and cond_2 are false
>   ENDONEOF( LABEL )
>   

If going down this path, SWITCH .. CASE is more familiar to C/C++ users, 
which currently make up the core of CMake users.


Cheers,
Brandon Van Every



More information about the CMake mailing list