From 7ed92fbbe84f0067a5f239b1e8376dfcf6bfdc98 Mon Sep 17 00:00:00 2001 From: Oleksiy Vyalov Date: Fri, 23 Jan 2015 20:09:14 +0000 Subject: [PATCH] Fix CMake build - add readline dependency on ${PYTHON_LIBRARY}. llvm-svn: 226933 --- lldb/scripts/Python/modules/readline/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/scripts/Python/modules/readline/CMakeLists.txt b/lldb/scripts/Python/modules/readline/CMakeLists.txt index 2e1afa1f..11089c6 100644 --- a/lldb/scripts/Python/modules/readline/CMakeLists.txt +++ b/lldb/scripts/Python/modules/readline/CMakeLists.txt @@ -7,6 +7,8 @@ SET(PYTHON_DIRECTORY python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site- include_directories(${PYTHON_INCLUDE_DIR}) add_library(readline SHARED readline.cpp) +target_link_libraries(readline ${PYTHON_LIBRARY}) + # FIXME: the LIBRARY_OUTPUT_PATH seems to be ignored - this is not a # functional issue for the build dir, though, since the shared lib dir # for the build is in the python shared library load path, and thus -- 2.7.4