Skip to content

Help: what is the purpose of generator expression $<BOOL:...>, and what the domain of ...?

cmake-generator-expressions(7) > Logical Expressions > $<BOOL:...> only says:

    1 if the ... is true, else 0

One would like to know what are alllowed values of .... Most probably other boolean-valued generator expressions. For them, however, $<BOOL:$<expr>> is equivalent to $<expr>, so what could be the purpose?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information