[llvm] r361307 - build: enable CMake policy 0077

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 13:28:32 PDT 2019


Author: compnerd
Date: Tue May 21 13:28:32 2019
New Revision: 361307

URL: http://llvm.org/viewvc/llvm-project?rev=361307&view=rev
Log:
build: enable CMake policy 0077

Enable CMake policy 77. This alters the behavior of option. The old behavior
would remove the value of the option from the cache and create a new one. The
new behavior does not create the variable if it is defined already. This ensures
that subsequent reconfigures will behave identically. This seems better than the
setting of OLD - the desire is to ensure that it is set to OLD or NEW.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=361307&r1=361306&r2=361307&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue May 21 13:28:32 2019
@@ -11,6 +11,10 @@ if(POLICY CMP0075)
   cmake_policy(SET CMP0075 NEW)
 endif()
 
+if(POLICY CMP0077)
+  cmake_policy(SET CMP0077 NEW)
+endif()
+
 if(NOT DEFINED LLVM_VERSION_MAJOR)
   set(LLVM_VERSION_MAJOR 9)
 endif()




More information about the llvm-commits mailing list