[Lldb-commits] [PATCH] D58279: Set cmake policy CMP0075 to NEW

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 15 05:24:13 PST 2019


labath created this revision.
labath added reviewers: sgraenitz, xiaobai.
Herald added a subscriber: mgorny.

The policy is about cmake_include_files ignoring
CMAKE_REQUIRED_LIBRARIES in the OLD behavior. Llvm already sets this
policy to NEW, but that is overridden by our cmake_minimum_required
command.

This makes our cmake policy setup consistent with the llvm build files
and avoids a warning when using newer versions of cmake.


https://reviews.llvm.org/D58279

Files:
  CMakeLists.txt


Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -1,5 +1,9 @@
 cmake_minimum_required(VERSION 3.4.3)
 
+if(POLICY CMP0075)
+  cmake_policy(SET CMP0075 NEW)
+endif()
+
 # Add path for custom modules
 set(CMAKE_MODULE_PATH
   ${CMAKE_MODULE_PATH}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58279.187001.patch
Type: text/x-patch
Size: 327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190215/4ca2d4d4/attachment-0001.bin>


More information about the lldb-commits mailing list