[Lldb-commits] [PATCH] D75275: [lldb/CMake] Use PYTHON_HOME as a hint to find Python 3.

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 27 13:31:10 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG04a91deebbb7: [lldb/CMake] Use PYTHON_HOME as a hint to find Python 3. (authored by JDevlieghere).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75275/new/

https://reviews.llvm.org/D75275

Files:
  lldb/cmake/modules/FindPythonInterpAndLibs.cmake


Index: lldb/cmake/modules/FindPythonInterpAndLibs.cmake
===================================================================
--- lldb/cmake/modules/FindPythonInterpAndLibs.cmake
+++ lldb/cmake/modules/FindPythonInterpAndLibs.cmake
@@ -10,6 +10,8 @@
   find_package(SWIG 2.0)
   if (SWIG_FOUND)
     if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
+      # Use PYTHON_HOME as a hint to find Python 3.
+      set(Python3_ROOT_DIR PYTHON_HOME)
       find_package(Python3 COMPONENTS Interpreter Development)
       if (Python3_FOUND AND Python3_Interpreter_FOUND)
         set(PYTHON_LIBRARIES ${Python3_LIBRARIES})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75275.247094.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200227/9a7babe8/attachment.bin>


More information about the lldb-commits mailing list