summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-01-02 13:31:32 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-01-02 13:39:57 -0800
commitf38234ed8b579230a3742317ffd5fb95514d9638 (patch)
tree06f7e857c60e34af36618f56147bcae3dc414bfe /lldb/source/Plugins/ScriptInterpreter
parent982695c0693fe576fb9daa34ecbf81808efdaa2f (diff)
downloadbcm5719-llvm-f38234ed8b579230a3742317ffd5fb95514d9638.tar.gz
bcm5719-llvm-f38234ed8b579230a3742317ffd5fb95514d9638.zip
[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.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
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()
OpenPOWER on IntegriCloud