JDevlieghere created this revision.
Herald added subscribers: lldb-commits, mgorny.
Herald added a project: LLDB.
JDevlieghere added reviewers: amccarth, stella.stamenova.
amccarth accepted this revision.
amccarth added a comment.
This revision is now accepted and ready to land.

Thanks for helping figure this out!


http://lists.llvm.org/pipermail/lldb-dev/2020-February/015998.html


Repository:
  rLLDB LLDB

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})


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})
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
  • [Lldb-commits] [PATCH] ... Jonas Devlieghere via Phabricator via lldb-commits

Reply via email to