From f38234ed8b579230a3742317ffd5fb95514d9638 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 2 Jan 2020 13:31:32 -0800 Subject: [lldb/CMake] Fix variable naming in FindLibEdit The current FOUND_VAR for FindLibEdit is libedit_FOUND but wasn't set by find_package_handle_standard_args. However this isn't valid for the package name. The argument for FOUND_VAR is "libedit_FOUND", but only "LibEdit_FOUND" and "LIBEDIT_FOUND" are valid names. This fixes all the variables set by FindLibEdit to match the desired naming scheme. --- lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/ScriptInterpreter') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt index 9088afe8140..761772f3a37 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt +++ b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt @@ -4,7 +4,7 @@ endif() add_definitions(-DLLDB_PYTHON_RELATIVE_LIBDIR="${LLDB_PYTHON_RELATIVE_PATH}") if (LLDB_ENABLE_LIBEDIT) - list(APPEND LLDB_LIBEDIT_LIBS ${libedit_LIBRARIES}) + list(APPEND LLDB_LIBEDIT_LIBS ${LibEdit_LIBRARIES}) endif() add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN @@ -28,6 +28,6 @@ add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN if (LLDB_ENABLE_LIBEDIT) target_include_directories(lldbPluginScriptInterpreterPython PUBLIC - ${libedit_INCLUDE_DIRS} + ${LibEdit_INCLUDE_DIRS} ) endif() -- cgit v1.2.3