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

Commit 9ccdda05 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

pqAboutDialog: support embedding a build ID

See: paraview-superbuild#178
parent 853c4eb4
Pipeline #219112 waiting for manual action with stages
......@@ -322,6 +322,9 @@ More advanced build options are:
* `PARAVIEW_BUILD_WITH_KITS` (default `OFF`): Compile ParaView into a smaller
set of libraries. Can be useful on platforms where ParaView takes a long
time to launch due to expensive disk access.
* `PARAVIEW_BUILD_ID` (default `""`): A build ID for the ParaView build. It
can be any arbitrary value which can be used to indicate the provenance of
ParaView.
#### Capability settings
......
......@@ -181,6 +181,12 @@ set_property(SOURCE pqComponentsInit.cxx APPEND
PROPERTY
COMPILE_DEFINITIONS "BUILD_SHARED_LIBS=${built_shared}")
if (PARAVIEW_BUILD_ID)
set_property(SOURCE pqAboutDialog.cxx APPEND
PROPERTY
COMPILE_DEFINITIONS "PARAVIEW_BUILD_ID=\"${PARAVIEW_BUILD_ID}\"")
endif ()
set(headers
pqPluginTreeWidget.h)
......
......@@ -178,6 +178,10 @@ void pqAboutDialog::AddClientInformation()
::addItem(tree, "MPI Enabled", "Off");
#endif
#ifdef PARAVIEW_BUILD_ID
::addItem(tree, "ParaView Build ID", PARAVIEW_BUILD_ID);
#endif
::addItem(tree, "Disable Registry", opts->GetDisableRegistry() ? "On" : "Off");
::addItem(tree, "Test Directory", opts->GetTestDirectory());
::addItem(tree, "Data Directory", opts->GetDataDirectory());
......
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