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

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to