[CMake] If syntax
Michael Wild
themiwi at gmail.com
Mon May 2 00:56:19 EDT 2011
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 that:
>
>
> if(expression)
> ...
> elseif(expression2)
> ...
> else()
> ...
> endif()
>
> should also work. Should the documentation be updated to reflect this
> possibility? Or are they different in some way?
>
> David
More information about the CMake
mailing list