From: mpa Date: Thu, 31 Oct 2013 07:41:18 +0000 (+0000) Subject: CMake: Edition accumulation of LD_LIBRARY_PATH and PATH X-Git-Tag: BR_hydro_v_0_3_1~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a4b0846ec7e703bfa4c254c87595142c70c32d60;p=modules%2Fkernel.git CMake: Edition accumulation of LD_LIBRARY_PATH and PATH --- diff --git a/salome_adm/cmake_files/FindSalomePython.cmake b/salome_adm/cmake_files/FindSalomePython.cmake index b6f77ffa5..13adbcdb0 100644 --- a/salome_adm/cmake_files/FindSalomePython.cmake +++ b/salome_adm/cmake_files/FindSalomePython.cmake @@ -150,7 +150,7 @@ IF (SALOMEPYTHON_FOUND) ## 6. Save the final detected installation ## SET(PYTHON_ROOT_DIR "${_tmp_ROOT_DIR}") - SALOME_ACCUMULATE_HEADERS(PYTHON_INCLUDE_DIR) + SET(PYTHON_PYTHONPATH "${_tmp_ROOT_DIR}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") ## 7. Specifics ## @@ -174,7 +174,8 @@ ELSE() ENDIF() IF(SALOMEPYTHON_FOUND) - #SALOME_ACCUMULATE_HEADERS(PYTHON_INCLUDE_DIR) + SALOME_ACCUMULATE_HEADERS(PYTHON_INCLUDE_DIR) + SALOME_ACCUMULATE_ENVIRONMENT(PATH ${PYTHON_EXECUTABLE}) SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${PYTHON_LIBRARIES}) - SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${PYTHON_LIBRARIES}) + SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${PYTHON_PYTHONPATH}) ENDIF()