Skip to content

Commit

Permalink
[lldb/CMake] Use PYTHON_HOME as a hint to find Python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
JDevlieghere committed Feb 27, 2020
1 parent 3156b1c commit 04a91de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lldb/cmake/modules/FindPythonInterpAndLibs.cmake
Original file line number Diff line number Diff line change
@@ -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})

0 comments on commit 04a91de

Please sign in to comment.