diff --git a/cmake/SetupParaView.cmake b/cmake/SetupParaView.cmake index f05a66b0711d..5128325e406b 100644 --- a/cmake/SetupParaView.cmake +++ b/cmake/SetupParaView.cmake @@ -1,12 +1,14 @@ # Distributed under the MIT License. # See LICENSE.txt for details. -option(ENABLE_PARAVIEW "Try to find ParaView to enable 3D rendering tools" ON) +option(ENABLE_PARAVIEW "Try to find ParaView to enable 3D rendering tools" OFF) -if (ENABLE_PARAVIEW) - find_package(ParaView) +if (NOT ENABLE_PARAVIEW) + return() endif() +find_package(ParaView) + # Help `find_python_module` find ParaView if (PARAVIEW_PYTHONPATH) set(PY_paraview_LOCATION ${PARAVIEW_PYTHONPATH}/paraview) diff --git a/docs/DevGuide/BuildSystem.md b/docs/DevGuide/BuildSystem.md index 1acab722bdae..ed2229b3c40d 100644 --- a/docs/DevGuide/BuildSystem.md +++ b/docs/DevGuide/BuildSystem.md @@ -245,7 +245,7 @@ cmake -D FLAG1=OPT1 ... -D FLAGN=OPTN bindings and interpolating volume data files. Note that simulations do not typically use OpenMP parallelization, so this flag only applies to tools. - ENABLE_PARAVIEW - - Try to find ParaView to enable 3D rendering tools (default is `ON`) + - Try to find ParaView to enable 3D rendering tools (default is `OFF`) - ENABLE_PROFILING - Enables various options to make profiling SpECTRE easier (default is `OFF`) diff --git a/support/Environments/caltech_hpc_gcc_icelake.sh b/support/Environments/caltech_hpc_gcc_icelake.sh index c387fc84275a..2c15d0b1fe65 100755 --- a/support/Environments/caltech_hpc_gcc_icelake.sh +++ b/support/Environments/caltech_hpc_gcc_icelake.sh @@ -43,6 +43,7 @@ spectre_run_cmake() { -D MACHINE=CaltechHpcIcelake \ -D OVERRIDE_ARCH=icelake-server \ -D BLA_VENDOR=OpenBLAS \ + -D ENABLE_PARAVIEW=ON \ "$@" \ $SPECTRE_HOME } diff --git a/support/Environments/caltech_hpc_gcc_skylake.sh b/support/Environments/caltech_hpc_gcc_skylake.sh index bf0189363547..b5ec8da5b23b 100755 --- a/support/Environments/caltech_hpc_gcc_skylake.sh +++ b/support/Environments/caltech_hpc_gcc_skylake.sh @@ -42,6 +42,7 @@ spectre_run_cmake() { -D BUILD_PYTHON_BINDINGS=ON \ -D MACHINE=CaltechHpcSkylake \ -D OVERRIDE_ARCH=skylake \ + -D ENABLE_PARAVIEW=ON \ "$@" \ $SPECTRE_HOME }