[CMake] Multiple ELSE() clauses

Sergey Zakharchenko doublef.mobile at gmail.com
Mon Mar 20 06:57:09 EDT 2017


Hello,

I've just noticed that CMake doesn't forbid multiple ELSE() (not just
ELSEIF()) clauses, and proceeds without warnings.

IF(1)
ELSE()
ELSE()
ENDIF()

Is this expected?

Best regards,

-- 
DoubleF


More information about the CMake mailing list