[LLVM][Runtimes] Hide unused CMake variable messages for runtimes builds
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 2 Feb 2023 17:31:48 +0000 (11:31 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 2 Feb 2023 18:54:43 +0000 (12:54 -0600)
commit6d9e7fa1de603451cd33911fb8754205219345d8
treed09b07f5a739b0761931e0489cf2595cfcc78477
parent108fa70cd213e63a591adb87ce444fb74afc6786
[LLVM][Runtimes] Hide unused CMake variable messages for runtimes builds

The LLVM runtime build is used to bootstrap projects with the built LLVM
toolchain. This effectively re-runs CMake with the current build
directory. One problem is that this passes every common CMake variable
to the projects individually, some of which are not necessarily used.

This patch suppresses the unused variable warnings for the runtimes.
The standard CMake invocation should still be able to print out the
unused variables so it should not impact code quality.

Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D143199
llvm/cmake/modules/LLVMExternalProjectUtils.cmake