[cmake-developers] [CMake 0014335]: CMake does not error on duplicate else()

Mantis Bug Tracker mantis at public.kitware.com
Sat Aug 3 00:43:25 EDT 2013


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                                    
======================================================================




More information about the cmake-developers mailing list