]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Fri, 1 Nov 2013 05:16:44 +0000 (05:16 +0000)
committermpa <mpa@opencascade.com>
Fri, 1 Nov 2013 05:16:44 +0000 (05:16 +0000)
- Accumulate environment variables, to be used later to run some command in proper environment.

CMakeLists.txt
SalomePARAVISConfig.cmake.in

index 01ec5895438d353206e7ba2a59246158e632c858..7d0c3f3a85836162f86b909a4ab460c7e6a78931 100644 (file)
@@ -206,6 +206,10 @@ IF(NOT SALOME_LIGHT_ONLY AND NOT SALOME_PARAVIS_MINIMAL_CORBA)
   ENDIF()
 ENDIF()
 
+# Accumulate environment variables for PARAVIS module
+SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
+                                                 ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON})
+SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS}) 
 
 # Sources 
 # ========
index 0266beb690a21f439a454cd5f5f1a92081b5df57..495b8279eb5aa0177b9ed533b70581f8efe27e69 100644 (file)
@@ -46,6 +46,9 @@ SET_AND_CHECK(PARAVIS_INCLUDE_DIRS "${PARAVIS_ROOT_DIR_EXP}/@SALOME_INSTALL_HEAD
 SET(PARAVIS_INCLUDE_DIRS "${PARAVIS_INCLUDE_DIRS};@_SalomePARAVIS_EXTRA_HEADERS@")
 SET(PARAVIS_DEFINITIONS "@KERNEL_DEFINITIONS@")
 
+# Package specific environment variables
+@_SalomePARAVIS_EXTRA_ENV_FULL@
+
 #### Now the specificities
 
 # Options exported by the package: