summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-12-22 20:45:46 -0800
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-12-22 20:47:25 -0800
commitb449d19e55888ab9554b04184c6d9716389820fd (patch)
treea950a2f2e3dc00d44cd30abb09d7ed819f79dc77
parentda0fe5db999baa659c2e386e5b0636dadfbbf759 (diff)
downloadbcm5719-llvm-b449d19e55888ab9554b04184c6d9716389820fd.tar.gz
bcm5719-llvm-b449d19e55888ab9554b04184c6d9716389820fd.zip
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.
-rw-r--r--lldb/cmake/modules/LLDBConfig.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index e1da76cf624..674b024492e 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()
OpenPOWER on IntegriCloud