Re: [CMake] If syntax

2011-05-02 Thread Michael Wild
[fixed top-posting and missing quotation characters] On 05/02/2011 12:20 PM, mika.raj...@patria.fi wrote: >> On 05/01/2011 10:30 PM, David Doria wrote: >>> According to this: >>> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:if >

Re: [CMake] If syntax

2011-05-02 Thread Mika . Rajala
easoning behind this, AFAIK, is to provide checking for errors in your scripts. Feel free to leave those out from else and endif if you trust yourself : ) -mika From: Michael Wild To: cmake@cmake.org Date: 02.05.2011 07:56 Subject: Re: [CMake] If syntax Sent by:cmake-bou

Re: [CMake] If syntax

2011-05-01 Thread Michael Wild
On 05/01/2011 10:30 PM, David Doria wrote: > According to this: > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:if > > the syntax is: > > if(expression) > ... > elseif(expression2) > ... > else(expression) > ... > endif(expression) > > I was recently made aware

[CMake] If syntax

2011-05-01 Thread David Doria
According to this: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:if the syntax is: if(expression) ... elseif(expression2) ... else(expression) ... endif(expression) I was recently made aware that: if(expression) ... elseif(expression2) ... else()