Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit eba9a4e8 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cmake: add back options to mark plugins for autoload

Fixes: #19276
parent 88c042c1
......@@ -554,6 +554,17 @@ list(LENGTH vtk_modules vtk_modules_len)
list(LENGTH paraview_modules paraview_modules_len)
message(STATUS "Enabled modules: VTK(${vtk_modules_len}), ParaView(${paraview_modules_len})")
set(autoload_plugins)
foreach (paraview_plugin IN LISTS paraview_plugins)
option("PARAVIEW_PLUGIN_AUTOLOAD_${paraview_plugin}" "Autoload the ${paraview_plugin} plugin" OFF)
mark_as_advanced("PARAVIEW_PLUGIN_AUTOLOAD_${paraview_plugin}")
if (PARAVIEW_PLUGIN_AUTOLOAD_${paraview_plugin})
list(APPEND autoload_plugins
"${paraview_plugin}")
endif ()
endforeach ()
paraview_plugin_build(
HEADERS_DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/paraview${paraview_version_suffix}"
RUNTIME_DESTINATION "${CMAKE_INSTALL_BINDIR}"
......@@ -566,7 +577,8 @@ paraview_plugin_build(
INSTALL_HEADERS "${PARAVIEW_INSTALL_DEVELOPMENT_FILES}"
TARGET_COMPONENT "development"
PLUGINS_COMPONENT "plugins"
PLUGINS ${paraview_plugins})
PLUGINS ${paraview_plugins}
AUTOLOAD ${autoload_plugins})
set(CMAKE_INSTALL_RPATH
"${_paraview_CMAKE_INSTALL_RPATH_save}")
......
......@@ -386,6 +386,9 @@ following options:
cmake configure and hence must be passed on the command line itself.
* `PARAVIEW_PLUGIN_ENABLE_<name>` (default varies): Whether to enable a
plugin or not.
* `PARAVIEW_PLUGIN_AUTOLOAD_<name>` (default `OFF`): Whether to autoload a
plugin at startup or not. Note that this affects all clients linking to
ParaView's plugin target.
#### Miscellaneous settings
ParaView uses VTK's module system to control its build. This infrastructure
......
# autoload-options
* `PARAVIEW_PLUGIN_AUTOLOAD_<PLUGIN>` options have been made available once again.
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