1 diff --git a/cmake/modules/FindPythonInstDir.cmake b/cmake/modules/FindPythonInstDir.cmake
2 index ed098ded..2a2e1543 100644
3 --- a/cmake/modules/FindPythonInstDir.cmake
4 +++ b/cmake/modules/FindPythonInstDir.cmake
6 -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "
7 -from sys import stdout
8 -from sysconfig import get_path
9 -path=get_path(name='platlib', vars={'platbase':'${CMAKE_INSTALL_PREFIX}'})
11 -OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
12 +SET(PYTHON_INSTALL_DIR "@PYTHON_INSTALL_DIR@")