<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/61436>61436</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            depdendent projects fail to build with cmake 3.25 and llvm 16-rc4
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          juchem
      </td>
    </tr>
</table>

<pre>
    For instance, when building [latest `iovisor/bcc`](https://github.com/iovisor/bcc/commit/1ea0390725391e76256af6a4d0eb857816e6290f), `cmake` complains about a change in the behavior of operator `IN_LIST`:
```
CMake Warning (dev) at /usr/local/lib/cmake/llvm/LLVM-Config.cmake:230 (if):
  Policy CMP0057 is not set: Support new IN_LIST if() operator.  Run "cmake
  --help-policy CMP0057" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  IN_LIST will be interpreted as an operator when the policy is set to NEW.
  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
 cmake/clang_libs.cmake:32 (llvm_map_components_to_libnames)
 src/cc/CMakeLists.txt:132 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/local/lib/cmake/llvm/LLVM-Config.cmake:230 (if):
  if given arguments:

    "engine" "IN_LIST" "link_components"

 Unknown arguments specified
Call Stack (most recent call first):
 cmake/clang_libs.cmake:32 (llvm_map_components_to_libnames)
 src/cc/CMakeLists.txt:132 (include)
```

Setting the policy in `LLVM-Config.cmake` fixes the issue.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVU1v2zgQ_TX0ZWCBoj4sHXRIkxookHaLTbs5GhQ1kthQpEBSdvvvF6TkJO4Ce9vDAoFiiTNvZt57JLlzctCIDSk-kOJhxxc_Gtv8WMSI06413a_maCxI7TzXAgm7h8uIGtpFqk7qAUjxQXGPzgMpqTRn6Ywl7NgKQUpKigfCqtH72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