diff options
author | Kim Grasman <kim.grasman@gmail.com> | 2020-03-03 16:46:07 +0100 |
---|---|---|
committer | Kim Grasman <kim.grasman@gmail.com> | 2020-03-03 16:55:05 +0100 |
commit | aa7c6633218b5ea2a6dbb131448dfd133d600102 (patch) | |
tree | 7572cae565788c06e49f78ec4643d8319db158a3 | |
parent | a17882f34228afd556ee3b78c4c9af619356dd0e (diff) |
Use new behavior for CMake policy CMP00770.14
This follows the LLVM default and suppresses a warning from CMake when
building with llvm-11.
(cherry picked from commit 63708dadb872810219329635261c7145570ef35d)
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a9ee737..8fe0411 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,10 @@ endif() if (NOT IWYU_IN_TREE) cmake_policy(SET CMP0048 NEW) + if (POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) + endif() + project(include-what-you-use) find_package(LLVM CONFIG REQUIRED) |