aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-12-14 00:17:12 +0000
committerReid Kleckner <rnk@google.com>2018-12-14 00:17:12 +0000
commit37b891edb3ea1e2bc1ec5a076aba56741a357621 (patch)
tree325d12e8e1c401d906aeb10e8ffdac4c82a6c044
parent6399234b9ecb613290d91e0c8e552d011dca0081 (diff)
downloadllvm-37b891edb3ea1e2bc1ec5a076aba56741a357621.zip
llvm-37b891edb3ea1e2bc1ec5a076aba56741a357621.tar.gz
llvm-37b891edb3ea1e2bc1ec5a076aba56741a357621.tar.bz2
Silence CMP0048 warning in the benchmark utility library
I'm testing this in LLVM before sending it upstream. Part of PR38874 llvm-svn: 349097
-rw-r--r--llvm/utils/benchmark/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/utils/benchmark/CMakeLists.txt b/llvm/utils/benchmark/CMakeLists.txt
index 686846b..788ad48 100644
--- a/llvm/utils/benchmark/CMakeLists.txt
+++ b/llvm/utils/benchmark/CMakeLists.txt
@@ -1,5 +1,11 @@
cmake_minimum_required (VERSION 2.8.12)
+# Tell cmake 3.0+ that it's safe to clear the PROJECT_VERSION variable in the
+# call to project() below.
+if(POLICY CMP0048)
+ cmake_policy(SET CMP0048 NEW)
+endif()
+
project (benchmark)
foreach(p