1# Use the same interpreter for PETSc, Boost.Python and embedded Python clients.
2if(NOT Python3_EXECUTABLE)
3 if(MoFEM_PYTHON_EXECUTABLE)
4 set(Python3_EXECUTABLE "${MoFEM_PYTHON_EXECUTABLE}")
5 elseif(PETSCVAR_PYTHON)
6 set(Python3_EXECUTABLE "${PETSCVAR_PYTHON}")
11 Python3 REQUIRED COMPONENTS Interpreter
12 OPTIONAL_COMPONENTS Development.Embed)
14set(MoFEM_PYTHON_EXECUTABLE "${Python3_EXECUTABLE}")
15set(MoFEM_PYTHON_VERSION "${Python3_VERSION}")
16set(MoFEM_PYTHON_INCLUDE_DIRS)
17set(MoFEM_PYTHON_LIBRARIES)
18if(TARGET Python3::Python)
19 set(MoFEM_PYTHON_INCLUDE_DIRS ${Python3_INCLUDE_DIRS})
20 set(MoFEM_PYTHON_LIBRARIES Python3::Python)