Fix LLDB Windows build Python version logic after r366243

llvm-svn: 366247
This commit is contained in:
Reid Kleckner 2019-07-16 18:46:51 +00:00
parent dad1f89210
commit 1d58c1d9d6
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ function(find_python_libs_windows)
PYTHONLIBS_VERSION_STRING "${python_version_str}")
message(STATUS "Found Python version ${PYTHONLIBS_VERSION_STRING}")
string(REGEX REPLACE "([0-9]+)[.]([0-9]+)[.][0-9]+" "python\\1\\2" PYTHONLIBS_BASE_NAME "${PYTHONLIBS_VERSION_STRING}")
set(PYTHONLIBS_VERSION_STRING "${PYTHONLIBS_VERSION_STRING}" PARENT_SCOPE)
unset(python_version_str)
else()
message(WARNING "Unable to find ${PYTHON_INCLUDE_DIR}/patchlevel.h, Python installation is corrupt.")