- Accumulate environment variables, to be used later to run some command in proper environment.
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
# ========
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:
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