]> SALOME platform Git repositories - modules/jobmanager.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Thu, 31 Oct 2013 11:40:09 +0000 (11:40 +0000)
committermpa <mpa@opencascade.com>
Thu, 31 Oct 2013 11:40:09 +0000 (11:40 +0000)
- Accumulate environment variables, to be used later to run some command in proper environment.

CMakeLists.txt
SalomeJOBMANAGERConfig.cmake.in
adm_local/cmake_files/FindSalomeJOBMANAGER.cmake

index 5351a30dc447bfac25a652fc48e7d81a29be5bda..af69cb3a09b868530659d52028b8b9bac4f2c409 100755 (executable)
@@ -139,6 +139,10 @@ MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED)
 MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG_LOCAL SALOME_INSTALL_DOC)
 MARK_AS_ADVANCED(SALOME_JOBMANAGER_INSTALL_RES_DATA)
 
+# Accumulate environment variables for JOBMANAGER module
+SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS})
+SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS}) 
+
 # Sources 
 # ========
 
index d0af9925098243024c1da010cd4b397978f732dd..486dac415987e61ec3e01bdf73588308d02e5e71 100644 (file)
@@ -46,6 +46,9 @@ SET_AND_CHECK(JOBMANAGER_INCLUDE_DIRS "${JOBMANAGER_ROOT_DIR_EXP}/@SALOME_INSTAL
 SET(JOBMANAGER_INCLUDE_DIRS "${JOBMANAGER_INCLUDE_DIRS};@_SalomeJOBMANAGER_EXTRA_HEADERS@")
 SET(JOBMANAGER_DEFINITIONS "@GUI_DEFINITIONS@")
 
+# Package specific environment variables
+@_SalomeJOBMANAGER_EXTRA_ENV_FULL@
+
 #### Now the specificities
 
 # Options exported by the package:
index 166473e82e7f91294f004444d7e8eb46d9668558..ee289bacbfdb050e8786c6d1f1e8793d68d95ac7 100644 (file)
@@ -29,3 +29,7 @@ SALOME_FIND_PACKAGE(SalomeJOBMANAGER SalomeJOBMANAGER CONFIG)
 IF(NOT SalomeJOBMANAGER_FIND_QUIETLY)
   MESSAGE(STATUS "Found Salome JOBMANAGER: ${JOBMANAGER_ROOT_DIR}")
 ENDIF()
+
+FOREACH(_res ${SalomeJOBMANAGER_EXTRA_ENV})
+  SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeJOBMANAGER_EXTRA_ENV_${_res}}")
+ENDFOREACH()
\ No newline at end of file