diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake index 16d4d8c9c460..d2ae1ba20140 100644 --- a/lldb/cmake/modules/LLDBConfig.cmake +++ b/lldb/cmake/modules/LLDBConfig.cmake @@ -28,6 +28,15 @@ set(default_disable_python OFF) set(default_enable_libedit ON) set(default_enable_curses ON) +# Temporary support the old LLDB_DISABLE_CURSES variable +if (DEFINED LLDB_DISABLE_CURSES) + if (LLDB_DISABLE_CURSES) + set(default_enable_curses OFF) + else() + set(default_enable_curses ON) + endif() +endif() + if(DEFINED LLVM_ENABLE_LIBEDIT AND NOT LLVM_ENABLE_LIBEDIT) set(default_disable_libedit ON) endif() @@ -44,8 +53,8 @@ elseif(IOS) endif() option(LLDB_DISABLE_PYTHON "Disable Python scripting integration." ${default_disable_python}) -option(LLDB_ENABLE_LIBEDIT "Disable the use of editline." ${default_enable_libedit}) -option(LLDB_ENABLE_CURSES "Disable Curses integration." ${default_enable_curses}) +option(LLDB_ENABLE_LIBEDIT "Enable the use of editline." ${default_enable_libedit}) +option(LLDB_ENABLE_CURSES "Enable Curses integration." ${default_enable_curses}) option(LLDB_RELOCATABLE_PYTHON "Use the PYTHONHOME environment variable to locate Python." OFF) option(LLDB_USE_SYSTEM_SIX "Use six.py shipped with system and do not install a copy of it" OFF) option(LLDB_USE_ENTITLEMENTS "When codesigning, use entitlements if available" ON)