Not anymore. You can do
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
IF(cond1)
ELSE()
ENDIF()
Wow, I never knew about that option.
I think adding adding an ELSEIF extension should not be a high priority, since the same thing can be accomplished with existing constructs, and it looks pretty decent and avoids indenting if that is your goal:
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
IF(COND1)
block of statements
ELSE()
IF(COND2)
block of statements
ELSE()
IF(COND3)
block of statements
ENDIF()
ENDIF()
ENDIF()
(Sure there are a lot of ENDIFs, but I can live with that.)
Phillip Hellewell
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
