Quantcast

Multiple ELSE() clauses

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Multiple ELSE() clauses

Sergey Zakharchenko
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
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Multiple ELSE() clauses

Rolf Eike Beer
Am 2017-03-20 11:57, schrieb Sergey Zakharchenko:

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

https://gitlab.kitware.com/cmake/cmake/issues/14335

--
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Multiple ELSE() clauses

Sergey Zakharchenko
Rolf,

2017-03-20 14:06 GMT+03:00 Rolf Eike Beer <[hidden email]>:
> https://gitlab.kitware.com/cmake/cmake/issues/14335

Since the issue is marked "easy" and it's over 3 years old, I assume
nobody cares? OK then.

Best regards,

--
DoubleF
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Multiple ELSE() clauses

CMake mailing list
Hello,

On 20/03/2017 12:09, Sergey Zakharchenko wrote:
> Rolf,
>
> 2017-03-20 14:06 GMT+03:00 Rolf Eike Beer <[hidden email]>:
>> https://gitlab.kitware.com/cmake/cmake/issues/14335
>
> Since the issue is marked "easy" and it's over 3 years old, I assume
> nobody cares? OK then.

I can try to fix it. I hope we don't need a new policy for that.

Thanks,
Gregor
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Multiple ELSE() clauses

CMake mailing list
In reply to this post by Sergey Zakharchenko
On 3/20/17 12:09 PM, Sergey Zakharchenko wrote:
> Rolf,
>
> 2017-03-20 14:06 GMT+03:00 Rolf Eike Beer <[hidden email]>:
>> https://gitlab.kitware.com/cmake/cmake/issues/14335
>
> Since the issue is marked "easy" and it's over 3 years old, I assume
> nobody cares? OK then.

https://gitlab.kitware.com/cmake/cmake/merge_requests/594


--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Loading...