[all-commits] [llvm/llvm-project] ae4fe1: [lldb] Enable cmake policy CMP0077 for option()

Dave Lee via All-commits all-commits at lists.llvm.org
Sat Oct 17 00:16:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ae4fe1984f0e47259b5e476a73749185cc24e1ac
      https://github.com/llvm/llvm-project/commit/ae4fe1984f0e47259b5e476a73749185cc24e1ac
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2020-10-17 (Sat, 17 Oct 2020)

  Changed paths:
    M lldb/CMakeLists.txt

  Log Message:
  -----------
  [lldb] Enable cmake policy CMP0077 for option()

In lldb, explicitly set the "option() honors normal variables" CMake policy. This applies for
standalone lldb builds and matches what llvm, clang, etc do. This prevents potentially unwanted
clearing of variables like `LLVM_ENABLE_WARNINGS`, and also prevents unnecessary build warnings.

See: https://cmake.org/cmake/help/latest/policy/CMP0077.html

Differential Revision: https://reviews.llvm.org/D89614




More information about the All-commits mailing list