@@ -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 )
@@ -88,11 +88,6 @@ if(LLDB_BUILD_FRAMEWORK)
8888 if (NOT APPLE )
8989 message (FATAL_ERROR "LLDB.framework can only be generated when targeting Apple platforms" )
9090 endif ()
91- # CMake 3.6 did not correctly emit POST_BUILD commands for Apple Framework targets
92- # CMake < 3.8 did not have the BUILD_RPATH target property
93- if (CMAKE_VERSION VERSION_LESS 3.8)
94- message (FATAL_ERROR "LLDB_BUILD_FRAMEWORK is not supported on CMake < 3.8" )
95- endif ()
9691
9792 set (LLDB_FRAMEWORK_VERSION A CACHE STRING "LLDB.framework version (default is A)" )
9893 set (LLDB_FRAMEWORK_BUILD_DIR bin CACHE STRING "Output directory for LLDB.framework" )
@@ -158,9 +153,9 @@ if (LLDB_ENABLE_PYTHON)
158153 "Embed PYTHONHOME in the binary. If set to OFF, PYTHONHOME environment variable will be used to to locate Python."
159154 ${default_embed_python_home} )
160155
161- include_directories (${PYTHON_INCLUDE_DIRS } )
156+ include_directories (${Python3_INCLUDE_DIRS } )
162157 if (LLDB_EMBED_PYTHON_HOME)
163- get_filename_component (PYTHON_HOME "${PYTHON_EXECUTABLE } " DIRECTORY )
158+ get_filename_component (PYTHON_HOME "${Python3_EXECUTABLE } " DIRECTORY )
164159 set (LLDB_PYTHON_HOME "${PYTHON_HOME} " CACHE STRING
165160 "Path to use as PYTHONHOME in lldb. If a relative path is specified, it will be resolved at runtime relative to liblldb directory." )
166161 endif ()
0 commit comments