Commit 34727dd7 authored by David Partyka's avatar David Partyka

Add PARAVIEW_FIXUP_BUNDLES_SEARCH_PATHS to runtime path.

Otherwise extractDocumentation executable may fail because it can't find a dependencies runtime.
parent 7d4ac7f6
......@@ -3,13 +3,23 @@ if(WIN32)
get_filename_component(QT_BIN_DIR "@QT_QMAKE_EXECUTABLE@" PATH)
get_filename_component(PYTHON_BIN "@PYTHON_EXECUTABLE@" PATH)
get_filename_component(MPI_BIN "@MPIEXEC@" PATH)
set(ENV{PATH} "${MPI_BIN};${PYTHON_BIN};${QT_BIN_DIR};$ENV{PATH}")
set(ENV{PATH} "${MPI_BIN};${PYTHON_BIN};${QT_BIN_DIR};@PARAVIEW_FIXUP_BUNDLE_SEARCH_PATHS@;$ENV{PATH}")
elseif(APPLE)
set(ENV{DYLD_LIBRARY_PATH} "@QT_LIBRARY_DIR@:$ENV{DYLD_LIBRARY_PATH}")
set(dyld_lib_path "@QT_LIBRARY_DIR@:$ENV{DYLD_LIBRARY_PATH}")
set(SEARCH_PATHS @PARAVIEW_FIXUP_BUNDLE_SEARCH_PATHS@)
foreach(path ${SEARCH_PATHS})
set(dyld_lib_path "${dyld_lib_path}:${path}")
endforeach()
set(ENV{DYLD_LIBRARY_PATH} ${dyld_lib_path})
else(WIN32)
get_filename_component(PYTHON_LIB "@PYTHON_LIBRARY@" PATH)
get_filename_component(MPI_LIB "@MPI_LIBRARY@" PATH)
set(ENV{LD_LIBRARY_PATH} "${MPI_LIB}:${PYTHON_LIB}:@QT_LIBRARY_DIR@:$ENV{LD_LIBRARY_PATH}")
set(ld_lib_path "${MPI_LIB}:${PYTHON_LIB}:@QT_LIBRARY_DIR@:$ENV{LD_LIBRARY_PATH}")
set(SEARCH_PATHS @PARAVIEW_FIXUP_BUNDLE_SEARCH_PATHS@)
foreach(path ${SEARCH_PATHS})
set(ld_lib_path "${ld_lib_path}:${path}")
endforeach()
set(ENV{LD_LIBRARY_PATH} ${ld_lib_path})
endif(WIN32)
execute_process(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment