mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-18 08:35:26 +08:00
cmake: use FindPython3 on cmake >= 3.12.0 to require Python 3
Change-Id: Ic67188880997ee447bb12b53ee4c9455c1182200
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user