···2626 check_ipo_supported(RESULT HAS_IPO)
2727endif()
28282929+# Android SDK doesn't look for 3.8 and 3.9, which is what new distros ship with.
3030+set(Python_ADDITIONAL_VERSIONS 3.8 3.9)
3131+if(NOT CMAKE_VERSION VERSION_LESS 3.12)
3232+ find_package(Python3 REQUIRED Interpreter)
3333+ set(PYTHON_EXECUTABLE Python3::Interpreter)
3434+else()
3535+ find_program(PYTHON_EXECUTABLE python3)
3636+ if(PYTHON_EXECUTABLE MATCHES "WindowsApps")
3737+ # If you hit this error, you will have to install Python 3 or try harder to tell CMake where it is.
3838+ message(FATAL_ERROR "Found WindowsApps alias for Python. Make sure Python3 is installed, then choose 'Manage App Execution Aliases' in Start and disable the aliases for Python.")
3939+ endif()
4040+endif()
4141+2942# Redundant mention of version is required because module defaults to looking for 2.91-compatible,
3043# which the config file for a 3.x says it's not compatible with.
3144find_package(Eigen3 3 REQUIRED)
···5669 message(STATUS "Could NOT find libLeap: (missing: /usr/local/lib/libLeap.so)")
5770endif()
58715959-# Android SDK doesn't look for 3.8 and 3.9, which is what new distros ship with.
6060-set(Python_ADDITIONAL_VERSIONS 3.8 3.9)
6161-if(NOT CMAKE_VERSION VERSION_LESS 3.12)
6262- find_package(Python3 REQUIRED Interpreter)
6363- set(PYTHON_EXECUTABLE Python3::Interpreter)
6464-else()
6565- find_program(PYTHON_EXECUTABLE python3)
6666- if(PYTHON_EXECUTABLE MATCHES "WindowsApps")
6767- # If you hit this error, you will have to install Python 3 or try harder to tell CMake where it is.
6868- message(FATAL_ERROR "Found WindowsApps alias for Python. Make sure Python3 is installed, then choose 'Manage App Execution Aliases' in Start and disable the aliases for Python.")
6969- endif()
7070-endif()
71727273add_library(xrt-pthreads INTERFACE)
7374if(WIN32)