1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-13 20:15:23 +02:00

cmake: use FindPython3 on cmake >= 3.12.0 to require Python 3

Change-Id: Ic67188880997ee447bb12b53ee4c9455c1182200
This commit is contained in:
Amin Bandali 2021-10-06 13:28:05 -04:00
parent 930b882246
commit c81ee90720

View file

@ -29,7 +29,12 @@ file(GLOB_RECURSE
RES_FILES CONFIGURE_DEPENDS
${PROJECT_SOURCE_DIR}/resources/*
)
include(FindPythonInterp)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
include(FindPython3)
find_package (Python3 COMPONENTS Interpreter)
else()
include(FindPythonInterp)
endif()
execute_process(
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/gen-resources.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}