[cmake] Configure policy CMP0116
authorDave Lee <davelee.com@gmail.com>
Thu, 22 Apr 2021 17:08:53 +0000 (10:08 -0700)
committerDave Lee <davelee.com@gmail.com>
Fri, 23 Apr 2021 15:57:40 +0000 (08:57 -0700)
commit638d84b60b7e7b7fa9099939ab4de2ec1e0c52c3
tree7ccbf750e25ef1c2ab1581321f374c0b2f5ea1ec
parent043bc88dbada3efd8bc811efc9fef610f57d47f4
[cmake] Configure policy CMP0116

Using `cmake` >=3.20 results in many warnings about this new policy. This change silences the warnings by explicitly declaring use of the "OLD" behavior.

This policy currently affects only one place: the `tablegen()` function in `TableGen.cmake`.

Differential Revision: https://reviews.llvm.org/D101083
llvm/CMakeLists.txt