[llvm] r282552 - [CMake] Force CMP0057 to NEW

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 16:18:33 PDT 2016


Author: cbieneman
Date: Tue Sep 27 18:18:32 2016
New Revision: 282552

URL: http://llvm.org/viewvc/llvm-project?rev=282552&view=rev
Log:
[CMake] Force CMP0057 to NEW

Hans reported an issue with r282510 on the list. This should resolve the issue.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=282552&r1=282551&r2=282552&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Sep 27 18:18:32 2016
@@ -15,6 +15,10 @@ if (POLICY CMP0051)
   cmake_policy(SET CMP0051 OLD)
 endif()
 
+if(POLICY CMP0057)
+  cmake_policy(SET CMP0057 NEW)
+endif()
+
 if(NOT DEFINED LLVM_VERSION_MAJOR)
   set(LLVM_VERSION_MAJOR 4)
 endif()




More information about the llvm-commits mailing list