- Accumulate environment variables, to be used later to run some command in proper environment.
IF(NOT SalomeBLSURFPLUGIN_FIND_QUIETLY)
MESSAGE(STATUS "Found Salome BLSURFPLUGIN: ${BLSURFPLUGIN_ROOT_DIR}")
ENDIF()
+
+FOREACH(_res ${SalomeBLSURFPLUGIN_EXTRA_ENV})
+ SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeBLSURFPLUGIN_EXTRA_ENV_${_res}}")
+ENDFOREACH()
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(MESHGEMS MESHGEMS_INCLUDE_DIRS 1)
MARK_AS_ADVANCED(MESHGEMS_INCLUDE_DIRS MESHGEMS_LIBRARIES)
-SALOME_ACCUMULATE_HEADERS(MESHGEMS_INCLUDE_DIRS)
+IF(MESHGEMS_FOUND)
+ SALOME_ACCUMULATE_HEADERS(MESHGEMS_INCLUDE_DIRS)
+ SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${MESHGEMS_LIBRARIES})
+ENDIF()