@@ -56,7 +56,7 @@ add_optional_dependency(LLDB_ENABLE_LIBEDIT "Enable editline support in LLDB" Li
5656add_optional_dependency(LLDB_ENABLE_CURSES "Enable curses support in LLDB" CursesAndPanel CURSESANDPANEL_FOUND)
5757add_optional_dependency(LLDB_ENABLE_LZMA "Enable LZMA compression support in LLDB" LibLZMA LIBLZMA_FOUND)
5858add_optional_dependency(LLDB_ENABLE_LUA "Enable Lua scripting support in LLDB" LuaAndSwig LUAANDSWIG_FOUND)
59- add_optional_dependency(LLDB_ENABLE_PYTHON "Enable Python scripting support in LLDB" PythonInterpAndLibs PYTHONINTERPANDLIBS_FOUND )
59+ add_optional_dependency(LLDB_ENABLE_PYTHON "Enable Python scripting support in LLDB" PythonAndSwig PYTHONANDSWIG_FOUND )
6060add_optional_dependency(LLDB_ENABLE_LIBXML2 "Enable Libxml 2 support in LLDB" LibXml2 LIBXML2_FOUND VERSION 2.8)
6161
6262option (LLDB_USE_SYSTEM_SIX "Use six.py shipped with system and do not install a copy of it" OFF )
@@ -79,11 +79,6 @@ if(LLDB_BUILD_FRAMEWORK)
7979 if (NOT APPLE )
8080 message (FATAL_ERROR "LLDB.framework can only be generated when targeting Apple platforms" )
8181 endif ()
82- # CMake 3.6 did not correctly emit POST_BUILD commands for Apple Framework targets
83- # CMake < 3.8 did not have the BUILD_RPATH target property
84- if (CMAKE_VERSION VERSION_LESS 3.8)
85- message (FATAL_ERROR "LLDB_BUILD_FRAMEWORK is not supported on CMake < 3.8" )
86- endif ()
8782
8883 set (LLDB_FRAMEWORK_VERSION A CACHE STRING "LLDB.framework version (default is A)" )
8984 set (LLDB_FRAMEWORK_BUILD_DIR bin CACHE STRING "Output directory for LLDB.framework" )
@@ -148,9 +143,9 @@ if (LLDB_ENABLE_PYTHON)
148143 "Embed PYTHONHOME in the binary. If set to OFF, PYTHONHOME environment variable will be used to to locate Python."
149144 ${default_embed_python_home} )
150145
151- include_directories (${PYTHON_INCLUDE_DIRS } )
146+ include_directories (${Python3_INCLUDE_DIRS } )
152147 if (LLDB_EMBED_PYTHON_HOME)
153- get_filename_component (PYTHON_HOME "${PYTHON_EXECUTABLE } " DIRECTORY )
148+ get_filename_component (PYTHON_HOME "${Python3_EXECUTABLE } " DIRECTORY )
154149 set (LLDB_PYTHON_HOME "${PYTHON_HOME} " CACHE STRING
155150 "Path to use as PYTHONHOME in lldb. If a relative path is specified, it will be resolved at runtime relative to liblldb directory." )
156151 endif ()
0 commit comments