From b449d19e55888ab9554b04184c6d9716389820fd Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 22 Dec 2019 20:45:46 -0800 Subject: [PATCH] build: use `find_package(Python3)` rather than `PYTHON_HOME` The behaviour of `PYTHON_HOME` can be emulated by setting `Python3_EXECUTABLE` to the absolute path instead of the custom variable now that we can find the python interpreter. --- lldb/cmake/modules/LLDBConfig.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake index e1da76c..674b024 100644 --- a/lldb/cmake/modules/LLDBConfig.cmake +++ b/lldb/cmake/modules/LLDBConfig.cmake @@ -148,6 +148,7 @@ if (LLDB_ENABLE_PYTHON) include_directories(${Python3_INCLUDE_DIRS}) if (NOT LLDB_RELOCATABLE_PYTHON) + get_filename_component(PYTHON_HOME "${Python3_EXECUTABLE}" DIRECTORY) file(TO_CMAKE_PATH "${PYTHON_HOME}" LLDB_PYTHON_HOME) endif() else() -- 2.7.4