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

    <tr>
        <th>Summary</th>
        <td>
            CMake OLD Policy issue when building Clang from source
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    I'm getting the following warning while building clang from the most recent source at my CMake 3.27, Xcode 15.0.1, MacOSX 14.1.1 M2 Macbook with the build command when placed at the created build folder ``cmake ../llvm -G \"Unix Makefiles\" -D CMAKE_BUILD_TYPE=Release -D LLVM_ENABLE_PROJECTS=clang``:
```
CMake Deprecation Warning at llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:6 (include)


CMake Deprecation Warning at llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  llvm-project/clang/CMakeLists.txt:6 (include)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVU2TozYQ_TXypWsoEPiDAwevP1Kb2Duundns5uQSUmOUEZJLEuPxv09JYMfJJVU574lqunn99F6LZs7Jk0asyPQTma4nrPetsdXKaC_1CTW_PjevrPdGmZPkTIWEZUJyL412k9qIa_WZ0HkHJ_ThE_At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