[Lldb-commits] [PATCH] D77842: Fix setting Python3_ROOT_DIR on Windows

Isuru Fernando via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 9 17:58:41 PDT 2020


isuruf created this revision.
Herald added subscribers: lldb-commits, mgorny.
Herald added a project: LLDB.
isuruf added a reviewer: LLDB.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77842

Files:
  lldb/cmake/modules/FindPythonInterpAndLibs.cmake


Index: lldb/cmake/modules/FindPythonInterpAndLibs.cmake
===================================================================
--- lldb/cmake/modules/FindPythonInterpAndLibs.cmake
+++ lldb/cmake/modules/FindPythonInterpAndLibs.cmake
@@ -11,7 +11,7 @@
   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)
+      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: D77842.256455.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200410/4063d351/attachment.bin>


More information about the lldb-commits mailing list