Skip to content

Commit

Permalink
Merge pull request #515 from stratakis/python_dirs
Browse files Browse the repository at this point in the history
Improve Python's site-packages directory detection for Python's pre-r…
  • Loading branch information
opdenkamp authored Jul 13, 2020
2 parents 1bea58b + f8ad651 commit b42fad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcec/cmake/CheckPlatformSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ else()
set(PYTHONLIBS_VERSION_STRING "2.7.x")
set(PYTHON_VERSION "2.7")
else()
string(REGEX REPLACE "\\.[0-9]+\\+?$" "" PYTHON_VERSION ${PYTHONLIBS_VERSION_STRING})
string(REGEX REPLACE "\\.[0-9,a,b,rc]+\\+?$" "" PYTHON_VERSION ${PYTHONLIBS_VERSION_STRING})
endif()
string(REGEX REPLACE "\\..*$" "" PYTHON_MAJOR_VERSION ${PYTHON_VERSION})
string(REGEX REPLACE "^.*\\." "" PYTHON_MINOR_VERSION ${PYTHON_VERSION})
Expand Down

0 comments on commit b42fad0

Please sign in to comment.