mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
cmake: Make sure we are looking for Python 3.8 and 3.9
This commit is contained in:
parent
e03ee48dce
commit
d9e90863d3
|
@ -43,6 +43,8 @@ find_package(cJSON)
|
||||||
find_package(Systemd)
|
find_package(Systemd)
|
||||||
find_package(OpenGLES COMPONENTS V3)
|
find_package(OpenGLES COMPONENTS V3)
|
||||||
|
|
||||||
|
# Android SDK doesn't look for 3.8 and 3.9, which is what new distros ship with.
|
||||||
|
set(Python_ADDITIONAL_VERSIONS 3.8 3.9)
|
||||||
if(NOT CMAKE_VERSION VERSION_LESS 3.12)
|
if(NOT CMAKE_VERSION VERSION_LESS 3.12)
|
||||||
find_package(Python3 REQUIRED Interpreter)
|
find_package(Python3 REQUIRED Interpreter)
|
||||||
set(PYTHON_EXECUTABLE Python3::Interpreter)
|
set(PYTHON_EXECUTABLE Python3::Interpreter)
|
||||||
|
|
Loading…
Reference in a new issue