[Lldb-commits] [lldb] r333863 - Python: adjust the include directories
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Sun Jun 3 19:08:13 PDT 2018
Author: compnerd
Date: Sun Jun 3 19:08:12 2018
New Revision: 333863
URL: http://llvm.org/viewvc/llvm-project?rev=333863&view=rev
Log:
Python: adjust the include directories
Restructure the include search order to adjust for libedit. This
ensures that the variables are not unused if they are not defined.
Modified:
lldb/trunk/scripts/Python/modules/readline/CMakeLists.txt
Modified: lldb/trunk/scripts/Python/modules/readline/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/modules/readline/CMakeLists.txt?rev=333863&r1=333862&r2=333863&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/modules/readline/CMakeLists.txt (original)
+++ lldb/trunk/scripts/Python/modules/readline/CMakeLists.txt Sun Jun 3 19:08:12 2018
@@ -6,14 +6,13 @@ SET(PYTHON_DIRECTORY python${PYTHON_VERS
# Build the readline python module
include_directories(${PYTHON_INCLUDE_DIR})
add_library(readline SHARED readline.cpp)
-target_include_directories(readline
- PRIVATE
- ${libedit_INCLUDE_DIRS})
+target_link_libraries(readline ${PYTHON_LIBRARY})
if (NOT LLDB_DISABLE_LIBEDIT)
- target_link_libraries(readline ${PYTHON_LIBRARY} ${libedit_LIBRARIES})
-else()
- target_link_libraries(readline ${PYTHON_LIBRARY})
+ target_include_directories(readline
+ PRIVATE
+ ${libedit_INCLUDE_DIRS})
+ target_link_libraries(readline ${libedit_LIBRARIES})
endif()
# FIXME: the LIBRARY_OUTPUT_PATH seems to be ignored - this is not a
More information about the lldb-commits
mailing list