[cmake-developers] Test for list size

Brad King brad.king at kitware.com
Wed Dec 12 07:54:05 EST 2018


On 12/12/18 7:01 AM, Torsten Robitzki wrote:
> we have often the need to test for a minimum list size
> 
>   list(LENGTH list list_size)
>   if (list_size GREATER 1)
> 
> This happens so much

I've almost never needed to test the length of a list.
What are you trying to do?

-Brad


More information about the cmake-developers mailing list