From: rnv Date: Tue, 16 Feb 2016 08:49:13 +0000 (+0300) Subject: Restore PYTHONBIN CMake variable. X-Git-Tag: V7_8_0a2~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=22aae4355f144e568c1aa1e0de273ea79e3e866f;p=modules%2Fkernel.git Restore PYTHONBIN CMake variable. --- diff --git a/salome_adm/cmake_files/FindSalomePythonInterp.cmake b/salome_adm/cmake_files/FindSalomePythonInterp.cmake index 8b20e14cc..ef1a8d7d2 100644 --- a/salome_adm/cmake_files/FindSalomePythonInterp.cmake +++ b/salome_adm/cmake_files/FindSalomePythonInterp.cmake @@ -40,6 +40,8 @@ SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(PythonInterp PYTHON_EXECUTABLE 1) IF(SALOMEPYTHONINTERP_FOUND) SET(PYTHON_PYTHONPATH "${PYTHON_ROOT_DIR}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") + GET_FILENAME_COMPONENT(_python_bin "${PYTHON_EXECUTABLE}" NAME ) + SET(PYTHONBIN "${_python_bin}" CACHE STRING "Name of Python interpreter") SALOME_ACCUMULATE_ENVIRONMENT(PATH ${PYTHON_EXECUTABLE}) SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${PYTHON_PYTHONPATH}) ENDIF()