HomePhabricator

[lldb] Enable cmake policy CMP0077 for option()

Authored by kastiglione on Oct 16 2020, 11:02 PM.

Description

[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

Details

Committed
kastiglioneOct 17 2020, 12:16 AM
Differential Revision
D89614: [lldb] Enable cmake policy CMP0077 for option()
Parents
rG5564ee495bdd: Revert "Register TargetCXXABI.def as a textual header"
Branches
Unknown
Tags
Unknown