Author: Jonas Devlieghere
Date: 2020-02-27T13:17:49-08:00
New Revision: 04a91deebbb740afb98cc48f519c835fe98ce27b

URL: 
https://github.com/llvm/llvm-project/commit/04a91deebbb740afb98cc48f519c835fe98ce27b
DIFF: 
https://github.com/llvm/llvm-project/commit/04a91deebbb740afb98cc48f519c835fe98ce27b.diff

LOG: [lldb/CMake] Use PYTHON_HOME as a hint to find Python 3.

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

Differential revision: https://reviews.llvm.org/D75275

Added: 
    

Modified: 
    lldb/cmake/modules/FindPythonInterpAndLibs.cmake

Removed: 
    


################################################################################
diff  --git a/lldb/cmake/modules/FindPythonInterpAndLibs.cmake 
b/lldb/cmake/modules/FindPythonInterpAndLibs.cmake
index 5c047831a029..8f3fa9e70bf5 100644
--- a/lldb/cmake/modules/FindPythonInterpAndLibs.cmake
+++ b/lldb/cmake/modules/FindPythonInterpAndLibs.cmake
@@ -10,6 +10,8 @@ else()
   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

Reply via email to