1CMP0085
2-------
3
4.. versionadded:: 3.14
5
6``$<IN_LIST:...>`` handles empty list items.
7
8In CMake 3.13 and lower, the ``$<IN_LIST:...>`` generator expression always
9returned ``0`` if the first argument was empty, even if the list contained an
10empty item. This behavior is inconsistent with the ``IN_LIST`` behavior of
11:command:`if`, which this generator expression is meant to emulate. CMake 3.14
12and later handles this case correctly.
13
14The ``OLD`` behavior of this policy is for ``$<IN_LIST:...>`` to always return
15``0`` if the first argument is empty. The ``NEW`` behavior is to return ``1``
16if the first argument is empty and the list contains an empty item.
17
18This policy was introduced in CMake version 3.14.  CMake version
19|release| warns when the policy is not set and uses ``OLD`` behavior.
20Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
21explicitly.
22
23.. include:: DEPRECATED.txt
24