The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=14335 
====================================================================== 
Reported By:                Rolf Eike Beer
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14335
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-08-03 00:43 EDT
Last Modified:              2013-08-03 00:43 EDT
====================================================================== 
Summary:                    CMake does not error on duplicate else()
Description: 
This should definitely give a syntax error as a stray else() also does:

if (foo)
   message(STATUS foo)
else ()
   message(STATUS not foo)
else ()
   message(STATUS funky)
endif ()

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-08-03 00:43 Rolf Eike Beer New Issue                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to