[llvm] r349097 - Silence CMP0048 warning in the benchmark utility library

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 13 16:17:13 PST 2018


Author: rnk
Date: Thu Dec 13 16:17:12 2018
New Revision: 349097

URL: http://llvm.org/viewvc/llvm-project?rev=349097&view=rev
Log:
Silence CMP0048 warning in the benchmark utility library

I'm testing this in LLVM before sending it upstream.

Part of PR38874

Modified:
    llvm/trunk/utils/benchmark/CMakeLists.txt

Modified: llvm/trunk/utils/benchmark/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/benchmark/CMakeLists.txt?rev=349097&r1=349096&r2=349097&view=diff
==============================================================================
--- llvm/trunk/utils/benchmark/CMakeLists.txt (original)
+++ llvm/trunk/utils/benchmark/CMakeLists.txt Thu Dec 13 16:17:12 2018
@@ -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




More information about the llvm-commits mailing list