Added matching ENDIF cmake statement