[CMake] Checking for empty list

2011-11-25 Thread Daniel Dekkers
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? Thanks, Daniel -- Powered by www.kitware.com Visit other

Re: [CMake] Checking for empty list

2011-11-25 Thread Rolf Eike Beer
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 -- Powered by www.kitware.com Visit other

Re: [CMake] Checking for empty list

2011-11-25 Thread Michael Wild
On 11/25/2011 02:52 PM, Daniel Dekkers wrote: 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?

Re: [CMake] Checking for empty list

2011-11-25 Thread Michael Wild
Michael Wild Verzonden: vrijdag 25 november 2011 15:15 Aan: cmake@cmake.org Onderwerp: Re: [CMake] Checking for empty list On 11/25/2011 02:52 PM, Daniel Dekkers wrote: Hi, I know it should be out there somewhere in the documentation, but can't find it. How do I check for an empty

Re: [CMake] Checking for empty list

2011-11-25 Thread Michael Hertling
On 11/25/2011 03:15 PM, Michael Wild wrote: On 11/25/2011 02:52 PM, Daniel Dekkers wrote: 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