[CMake] Complaint about if..endif

Bill Hoffman bill.hoffman at kitware.com
Sat Nov 22 09:06:42 EST 2008


Ioan Calin Borcoman wrote:
> Does this apply to else(), too?
> 
> And could you please update the man page?
> 

In cmake 2.6.0 and greater the arguments are optional.

if(foo AND BAR)
...
endif()

works just fine without the variable being set.

-Bill


More information about the CMake mailing list