[CMake] Checking for empty list

Rolf Eike Beer eike at sf-mail.de
Fri Nov 25 09:01:11 EST 2011


> Hi,
> I know it should be out there somewhere in the documentation, but can't
find
> it.
> How do I check for an empty list?
> I can use LIST(LENGTH MYLIST LISTCOUNT) with an extra variable LISTCOUNT
but
> isn't there a single command?

if (MYLIST)

Eike


More information about the CMake mailing list