Skip to content
Snippets Groups Projects
Commit c81ee907 authored by Amin Bandali's avatar Amin Bandali
Browse files

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

Change-Id: Ic67188880997ee447bb12b53ee4c9455c1182200
parent 930b8822
Branches
Tags
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment