forked from OSchip/llvm-project
Fix LLDB Windows build Python version logic after r366243
llvm-svn: 366247
This commit is contained in:
parent
dad1f89210
commit
1d58c1d9d6
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue