]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Restore PYTHONBIN CMake variable.
authorrnv <rnv@opencascade.com>
Tue, 16 Feb 2016 08:49:13 +0000 (11:49 +0300)
committerrnv <rnv@opencascade.com>
Tue, 16 Feb 2016 08:49:13 +0000 (11:49 +0300)
salome_adm/cmake_files/FindSalomePythonInterp.cmake

index 8b20e14cc4390f4fd1f30a977d22afedd0421ebc..ef1a8d7d22d06b35eb11e3cfdabbe0757232c656 100644 (file)
@@ -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()