mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-21 15:24:01 +02:00
cmake: use FindPython3 on cmake >= 3.12.0 to require Python 3
Change-Id: Ic67188880997ee447bb12b53ee4c9455c1182200
This commit is contained in:
parent
930b882246
commit
c81ee90720
1 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,12 @@ file(GLOB_RECURSE
|
||||||
RES_FILES CONFIGURE_DEPENDS
|
RES_FILES CONFIGURE_DEPENDS
|
||||||
${PROJECT_SOURCE_DIR}/resources/*
|
${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(
|
execute_process(
|
||||||
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/gen-resources.py
|
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/gen-resources.py
|
||||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||||
|
|
Loading…
Add table
Reference in a new issue