1 #======================================================================== 3 # Options that affect the ParaView build, in general. 4 # These should begin with `PARAVIEW_BUILD_`. 5 #======================================================================== 8 option(PARAVIEW_BUILD_SHARED_LIBS
"Build ParaView with shared libraries" "${shared_default}")
11 option(PARAVIEW_BUILD_LEGACY_REMOVE
"Remove all legacy code completely" "${legacy_remove_default}")
12 mark_as_advanced(PARAVIEW_BUILD_LEGACY_REMOVE)
15 option(PARAVIEW_BUILD_LEGACY_SILENT
"Silence all legacy code messages" "${legacy_silent_default}")
16 mark_as_advanced(PARAVIEW_BUILD_LEGACY_SILENT)
18 # Kits bundle multiple modules together into a single library, this 19 # is used to dramatically reduce the number of generated libraries. 21 cmake_dependent_option(PARAVIEW_BUILD_WITH_KITS
"Build ParaView using kits instead of modules." OFF
22 # Static builds don
't make sense with kits. Ignore the flag if shared 23 # libraries aren't being built.
24 "PARAVIEW_BUILD_SHARED_LIBS" OFF)
25 mark_as_advanced(PARAVIEW_BUILD_WITH_KITS)
28 option(PARAVIEW_BUILD_WITH_EXTERNAL
"Use external copies of third party libraries by default" OFF)
29 mark_as_advanced(PARAVIEW_BUILD_WITH_EXTERNAL)
31 option(PARAVIEW_BUILD_ALL_MODULES
"Build all modules by default" OFF)
32 mark_as_advanced(PARAVIEW_BUILD_ALL_MODULES)
33 set(_vtk_module_reason_WANT_BY_DEFAULT
34 "via `PARAVIEW_BUILD_ALL_MODULES`")
37 option(PARAVIEW_ENABLE_EXAMPLES
"Enable ParaView examples" "${examples_default}")
38 set(PARAVIEW_BUILD_TESTING
"OFF" 39 CACHE STRING
"Enable testing")
40 set_property(CACHE PARAVIEW_BUILD_TESTING
42 STRINGS
"ON;OFF;WANT;DEFAULT")
44 cmake_dependent_option(PARAVIEW_BUILD_VTK_TESTING
"Enable VTK testing" OFF
45 "PARAVIEW_BUILD_TESTING" OFF)
46 option(PARAVIEW_BUILD_DEVELOPER_DOCUMENTATION
"Generate ParaView C++/Python docs" "${doc_default}")
48 option(PARAVIEW_PLUGIN_DISABLE_XML_DOCUMENTATION
"Forcefully disable XML documentation generation" OFF)
49 mark_as_advanced(PARAVIEW_PLUGIN_DISABLE_XML_DOCUMENTATION)
51 set(PARAVIEW_BUILD_EDITION
"CANONICAL" 52 CACHE STRING
"Enable ParaView components essential for requested capabilities.")
53 set_property(CACHE PARAVIEW_BUILD_EDITION
55 STRINGS
"CORE;RENDERING;CATALYST;CATALYST_RENDERING;CANONICAL")
57 cmake_dependent_option(PARAVIEW_BUILD_EDITION_STRICT
58 "Restrict VTK modules to those strictly needed by the PARAVIEW_BUILD_EDITION" ON
59 "NOT PARAVIEW_USE_EXTERNAL_VTK" OFF)
61 set(PARAVIEW_BUILD_CANONICAL OFF)
62 set(PARAVIEW_ENABLE_RENDERING OFF)
63 set(PARAVIEW_ENABLE_NONESSENTIAL OFF)
64 if (PARAVIEW_BUILD_EDITION STREQUAL
"CORE")
66 elseif (PARAVIEW_BUILD_EDITION STREQUAL
"RENDERING")
67 set(PARAVIEW_ENABLE_RENDERING ON)
68 elseif (PARAVIEW_BUILD_EDITION STREQUAL
"CATALYST")
69 set(PARAVIEW_BUILD_CANONICAL ON)
70 elseif (PARAVIEW_BUILD_EDITION STREQUAL
"CATALYST_RENDERING")
71 set(PARAVIEW_ENABLE_RENDERING ON)
72 set(PARAVIEW_BUILD_CANONICAL ON)
73 elseif (PARAVIEW_BUILD_EDITION STREQUAL
"CANONICAL")
74 set(PARAVIEW_ENABLE_RENDERING ON)
75 set(PARAVIEW_BUILD_CANONICAL ON)
76 set(PARAVIEW_ENABLE_NONESSENTIAL ON)
79 # We want to warn users if PARAVIEW_BUILD_EDITION is changed after first configure since the default 80 # state of various other settings may not be what user expects. 81 if (DEFINED _paraview_build_edition_cached AND
82 NOT _paraview_build_edition_cached STREQUAL PARAVIEW_BUILD_EDITION)
84 "Changing `PARAVIEW_BUILD_EDITION` after first configure will not setup " 85 "defaults for others settings correctly e.g. plugins enabled. It is " 86 "recommended that you start with a clean build directory and pass the " 87 "option to CMake using " 88 "'-DPARAVIEW_BUILD_EDITION:STRING=${PARAVIEW_BUILD_EDITION}'.")
90 set(_paraview_build_edition_cached "${PARAVIEW_BUILD_EDITION}
" CACHE INTERNAL "") 92 set(VTK_GROUP_ENABLE_PARAVIEW_CORE "YES
" CACHE INTERNAL "") 93 if (PARAVIEW_BUILD_CANONICAL) 94 set(VTK_GROUP_ENABLE_PARAVIEW_CANONICAL "YES
" CACHE INTERNAL "") 96 set(VTK_GROUP_ENABLE_PARAVIEW_CANONICAL "NO
" CACHE INTERNAL "") 99 #======================================================================== 100 # CAPABILITY OPTIONS: 101 # Options that affect the build capabilities. 102 # These should begin with `PARAVIEW_USE_`. 103 #======================================================================== 105 option(PARAVIEW_USE_MPI "Enable MPI support
for parallel computing
" OFF) 106 option(PARAVIEW_SERIAL_TESTS_USE_MPIEXEC 107 "Used
on HPC to run serial tests
on compute nodes
" OFF) 108 mark_as_advanced(PARAVIEW_SERIAL_TESTS_USE_MPIEXEC) 109 option(PARAVIEW_USE_CUDA "Support CUDA compilation
" OFF) 111 vtk_deprecated_setting(default_use_viskores PARAVIEW_USE_VISKORES PARAVIEW_USE_VTKM "${PARAVIEW_ENABLE_NONESSENTIAL}
") 112 option(PARAVIEW_USE_VISKORES "Enable Viskores accelerated algorithms
" "${default_use_viskores}
") 114 if (UNIX AND NOT APPLE) 115 option(PARAVIEW_USE_MEMKIND "Build support
for extended memory
" OFF) 118 # Add option to disable Fortran 120 include(CheckFortran) 121 check_fortran_support() 122 if (CMAKE_Fortran_COMPILER) 123 set(_has_fortran TRUE) 125 set(_has_fortran FALSE) 127 cmake_dependent_option(PARAVIEW_USE_FORTRAN "Enable Fortran support
" ON 129 mark_as_advanced(PARAVIEW_USE_FORTRAN) 133 vtk_deprecated_setting(python_default PARAVIEW_USE_PYTHON PARAVIEW_ENABLE_PYTHON OFF) 134 option(PARAVIEW_USE_PYTHON "Enable/Disable Python scripting support
" "${python_default}
") 136 option(PARAVIEW_USE_SERIALIZATION "Enable/Disable Serialization support
" OFF) 138 # Currently, we're making `PARAVIEW_USE_QT` available only when doing CANONICAL 139 # builds with RENDERING. This is technically not necessary so we can support that 140 # use-case if needed in future but will require some work to make sure the Qt components 141 # work correctly with missing proxies. 142 vtk_deprecated_setting(qt_gui_default PARAVIEW_USE_QT PARAVIEW_BUILD_QT_GUI "ON
") 143 cmake_dependent_option(PARAVIEW_USE_QT 144 "Enable Qt-support needed
for graphical UI
" "${qt_gui_default}
" 145 "PARAVIEW_BUILD_CANONICAL;PARAVIEW_ENABLE_RENDERING;PARAVIEW_ENABLE_NONESSENTIAL
" OFF) 147 # Add an option to enable using Qt WebEngine for widgets, as needed. 148 # Default is OFF. We don't want to depend on WebEngine unless absolutely needed. 149 cmake_dependent_option(PARAVIEW_USE_QTWEBENGINE 150 "Use Qt WebEngine components as needed.
" OFF 151 "PARAVIEW_USE_QT
" OFF) 152 mark_as_advanced(PARAVIEW_USE_QTWEBENGINE) 154 # Add an option to enable using Qt Help, as needed. 155 # Default is ON to enable integrated help/documentation. 156 cmake_dependent_option(PARAVIEW_USE_QTHELP 157 "Use Qt Help infrastructure as needed.
" ON 158 "PARAVIEW_USE_QT
" OFF) 159 mark_as_advanced(PARAVIEW_USE_QTHELP) 161 if (PARAVIEW_USE_QTHELP AND NOT PARAVIEW_USE_QTWEBENGINE) 162 message(STATUS "Using
'QtHelp' without
'QtWebEngine' will ignore embedded javascript and *.js files
for documentation") 165 if (PARAVIEW_ENABLE_RAYTRACING AND VTK_ENABLE_OSPRAY) 166 set(paraview_use_materialeditor ON) 168 set(paraview_use_materialeditor OFF) 171 #======================================================================== 173 # Options that toggle features. These should begin with `PARAVIEW_ENABLE_`. 174 #======================================================================== 176 option(PARAVIEW_ENABLE_ANARI "Enable Anari Support
" OFF) 178 vtk_deprecated_setting(raytracing_default PARAVIEW_ENABLE_RAYTRACING PARAVIEW_USE_RAYTRACING "OFF
") 179 option(PARAVIEW_ENABLE_RAYTRACING "Build ParaView with OSPray and/or OptiX ray-tracing support
" ${raytracing_default}) 181 if (PARAVIEW_ENABLE_RAYTRACING AND NOT VTK_ENABLE_OSPRAY AND NOT VTK_ENABLE_VISRTX) 182 message(WARNING "Ray Tracing module is activated without any ray tracing implementation.
183 Please activate either VTK_ENABLE_OSPRAY and/or VTK_ENABLE_VISRTX in
order to provide a raytracing implementation
for ParaView.
") 186 set(paraview_web_default ON) 187 if (PARAVIEW_USE_PYTHON AND WIN32) 188 include(ParaViewFindPythonModules) 189 find_python_module(win32api have_pywin32) 190 set(paraview_web_default "${have_pywin32}
") 193 if (NOT PARAVIEW_BUILD_EDITION STREQUAL "CANONICAL
") 194 set(paraview_web_default OFF) 196 cmake_dependent_option(PARAVIEW_ENABLE_WEB "Enable/Disable web support
" "${paraview_web_default}
" 197 "PARAVIEW_USE_PYTHON
" OFF) 199 # NvPipe requires an NVIDIA GPU. 200 option(PARAVIEW_ENABLE_NVPIPE "Build ParaView with NvPipe remoting. Requires CUDA and an NVIDIA GPU
" OFF) 201 if (PARAVIEW_ENABLE_NVPIPE) 203 "NvPipe is not longer supported. See
" 205 set(PARAVIEW_ENABLE_NVPIPE OFF)
208 option(PARAVIEW_ENABLE_OPENVDB
"Enable the OpenVDB Writer" OFF)
210 option(PARAVIEW_ENABLE_NANOVDB
"Enable the NanoVDB Writer" OFF)
212 option(PARAVIEW_ENABLE_ALEMBIC
"Enable Alembic support." OFF)
214 option(PARAVIEW_ENABLE_GDAL
"Enable GDAL support." OFF)
216 option(PARAVIEW_ENABLE_LAS
"Enable LAS support." OFF)
218 option(PARAVIEW_ENABLE_OPENTURNS
"Enable OpenTURNS support." OFF)
220 option(PARAVIEW_ENABLE_PDAL
"Enable PDAL support." OFF)
222 option(PARAVIEW_ENABLE_MOTIONFX
"Enable MotionFX support." OFF)
224 option(PARAVIEW_ENABLE_MOMENTINVARIANTS
"Enable MomentInvariants filters" OFF)
226 option(PARAVIEW_ENABLE_LOOKINGGLASS
"Enable LookingGlass displays" OFF)
228 option(PARAVIEW_ENABLE_VISITBRIDGE
"Enable VisIt readers." OFF)
230 option(PARAVIEW_ENABLE_CATALYST
"Enable ParaViewCatalyst implementation" OFF)
232 # default to ON for CANONICAL builds, else OFF. 233 set(xdmf2_default OFF)
234 if (PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_NONESSENTIAL)
235 set(xdmf2_default ON)
237 option(PARAVIEW_ENABLE_XDMF2
"Enable Xdmf2 support." "${xdmf2_default}")
239 option(PARAVIEW_ENABLE_XDMF3
"Enable Xdmf3 support." OFF)
241 option(PARAVIEW_ENABLE_ADIOS2
"Enable ADIOS 2.x support." OFF)
243 option(PARAVIEW_ENABLE_FIDES
"Enable Fides support." OFF)
245 option(PARAVIEW_ENABLE_FFMPEG
"Enable FFMPEG Support." OFF)
247 option(PARAVIEW_ENABLE_OCCT
"Enable OCCT Support." OFF)
249 option(PARAVIEW_ENABLE_IFC
"Enable IFC Support." OFF)
251 option(PARAVIEW_BUILD_TRANSLATIONS
"Generate translation files" OFF)
252 if (PARAVIEW_BUILD_TRANSLATIONS)
253 set(PARAVIEW_TRANSLATIONS_DIRECTORY
"${CMAKE_BINARY_DIR}/Translations" CACHE STRING
254 "The directory containing translation files")
257 # If building on Unix with MPI enabled, we will present another option to 258 # enable building of CosmoTools VTK extensions. This option is by default 259 # OFF and set to OFF if ParaView is not built with MPI. 260 cmake_dependent_option(PARAVIEW_ENABLE_COSMOTOOLS
261 "Build ParaView with CosmoTools VTK Extensions" OFF
262 "UNIX;PARAVIEW_USE_MPI" OFF)
264 # PARAVIEW_ENABLE_CGNS_* option is only shown when PARAVIEW_ENABLE_NONESSENTIAL is 265 # OFF and then it defaults to OFF. If PARAVIEW_ENABLE_NONESSENTIAL is ON, then 266 # PARAVIEW_ENABLE_CGNS_* is set to ON as well and presented to the user at all. 267 cmake_dependent_option(PARAVIEW_ENABLE_CGNS_READER
268 "Enable CGNS Reader Support" OFF
269 "NOT PARAVIEW_ENABLE_NONESSENTIAL" ON)
270 cmake_dependent_option(PARAVIEW_ENABLE_CGNS_WRITER
271 "Enable CGNS Reader Support" OFF
272 "NOT PARAVIEW_ENABLE_NONESSENTIAL" ON)
274 #======================================================================== 275 # MISCELLANEOUS OPTIONS: 276 # Options that are hard to classify. Keep this list minimal. 277 # These should be advanced by default. 278 #======================================================================== 279 option(PARAVIEW_INSTALL_DEVELOPMENT_FILES
"Install development files to the install tree" ON)
280 mark_as_advanced(PARAVIEW_INSTALL_DEVELOPMENT_FILES)
282 option(PARAVIEW_RELOCATABLE_INSTALL
"Do not embed hard-coded paths into the install" ON)
283 mark_as_advanced(PARAVIEW_RELOCATABLE_INSTALL)
285 option(PARAVIEW_GENERATE_SPDX
"Generate SPDX file for each module." OFF)
286 mark_as_advanced(PARAVIEW_GENERATE_SPDX)
288 cmake_dependent_option(PARAVIEW_INITIALIZE_MPI_ON_CLIENT
289 "Initialize MPI on client-processes by default. Can be overridden using command line arguments" ON
290 "PARAVIEW_USE_MPI" OFF)
291 mark_as_advanced(PARAVIEW_INITIALIZE_MPI_ON_CLIENT)
293 set(PARAVIEW_LOGGING_TIME_PRECISION
"3" 294 CACHE STRING
"Precision of loguru scope timers. 3=ms, 6=us, 9=ns")
295 mark_as_advanced(PARAVIEW_LOGGING_TIME_PRECISION)
296 set(known_logging_precisions 3 6 9)
297 set_property(CACHE PARAVIEW_LOGGING_TIME_PRECISION
299 STRINGS ${known_logging_precisions})
300 if (NOT PARAVIEW_LOGGING_TIME_PRECISION IN_LIST known_logging_precisions)
301 string(REPLACE
";" ", " known_logging_precisions_list
"${known_logging_precisions}")
303 "`PARAVIEW_LOGGING_TIME_PRECISION` must be one of " 304 "${known_logging_precisions_list}; given '${PARAVIEW_LOGGING_TIME_PRECISION}'")
307 #======================================================================== 308 # OBSOLETE OPTIONS: mark obsolete settings 309 #======================================================================== 317 #======================================================================================== 318 # Build up list of required and rejected modules 319 #======================================================================================== 320 set(paraview_requested_modules)
321 set(paraview_rejected_modules)
324 Conditionally require/reject optional modules
326 Use
this macro to conditionally require (or reject) modules.
331 [CONDITION <condition>]
335 The arguments are as follows:
337 * `MODULES`: (Required) The list of modules.
338 * `CONDITION`: (Defaults to `TRUE`) The condition under which the modules
339 specified are added to the requested list.
340 * `EXCLUSIVE`: When sepcified,
if `CONDITION` is
false, the module will be
341 added to the rejected modules list.
344 cmake_parse_arguments(pem
350 if (pem_UNPARSED_ARGUMENTS)
352 "Unparsed arguments for `paraview_require_module`: " 353 "${pem_UNPARSED_ARGUMENTS}")
356 if (NOT DEFINED pem_CONDITION)
357 set(pem_CONDITION TRUE)
360 if (${pem_CONDITION})
361 # message(
"${pem_CONDITION} == TRUE")
362 list(APPEND paraview_requested_modules ${pem_MODULES})
363 foreach (_pem_module IN LISTS _pem_MODULES)
364 set(
"_vtk_module_reason_${_pem_module}" 365 "via `${pem_CONDITION}`")
367 elseif (pem_EXCLUSIVE)
368 # message(
"${pem_CONDITION} == FALSE")
369 list(APPEND paraview_rejected_modules ${pem_MODULES})
370 foreach (_pem_module IN LISTS _pem_MODULES)
371 set(
"_vtk_module_reason_${_pem_module}" 372 "via `${pem_CONDITION}`")
379 unset(pem_UNPARSED_ARGUMENTS)
383 # ensures that VTK::mpi module is rejected when MPI is not
enabled.
384 paraview_require_module(
385 CONDITION PARAVIEW_USE_MPI
386 MODULES VTK::ParallelMPI
391 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_ENABLE_RENDERING
392 MODULES VTK::RenderingParallelLIC
395 # ensures VTK::Python module is rejected when Python is not enabled. 397 CONDITION PARAVIEW_USE_PYTHON
399 VTK::PythonInterpreter
400 ParaView::PythonInterpreterPath
404 CONDITION PARAVIEW_USE_PYTHON AND PARAVIEW_ENABLE_RENDERING AND PARAVIEW_BUILD_CANONICAL
405 MODULES VTK::RenderingMatplotlib)
408 CONDITION PARAVIEW_USE_VISKORES
409 MODULES VTK::AcceleratorsVTKmFilters
413 CONDITION PARAVIEW_ENABLE_RAYTRACING AND PARAVIEW_ENABLE_RENDERING
414 MODULES VTK::RenderingRayTracing
418 CONDITION PARAVIEW_ENABLE_RENDERING AND PARAVIEW_ENABLE_ANARI
419 MODULES VTK::RenderingAnari
423 CONDITION PARAVIEW_ENABLE_RAYTRACING AND VTK_ENABLE_OSPRAY
424 MODULES ParaView::VTKExtensionsShaderBall
428 CONDITION PARAVIEW_ENABLE_NVPIPE
433 CONDITION PARAVIEW_ENABLE_ALEMBIC
434 MODULES VTK::IOAlembic
438 CONDITION PARAVIEW_ENABLE_GDAL
443 CONDITION PARAVIEW_ENABLE_LAS
448 CONDITION PARAVIEW_ENABLE_OPENTURNS
449 MODULES VTK::FiltersOpenTURNS
453 CONDITION PARAVIEW_ENABLE_PDAL
458 CONDITION PARAVIEW_ENABLE_MOTIONFX
459 MODULES VTK::IOMotionFX
463 CONDITION PARAVIEW_ENABLE_MOMENTINVARIANTS
464 MODULES VTK::MomentInvariants
468 CONDITION PARAVIEW_ENABLE_MOMENTINVARIANTS AND PARAVIEW_USE_MPI
469 MODULES VTK::ParallelMomentInvariants
473 CONDITION PARAVIEW_ENABLE_LOOKINGGLASS
474 MODULES VTK::RenderingLookingGlass
478 CONDITION PARAVIEW_ENABLE_VISITBRIDGE
479 MODULES ParaView::IOVisItBridge
484 CONDITION PARAVIEW_ENABLE_XDMF2
489 CONDITION PARAVIEW_ENABLE_XDMF3
494 CONDITION PARAVIEW_ENABLE_ADIOS2
495 MODULES VTK::IOADIOS2
499 CONDITION PARAVIEW_ENABLE_FIDES
504 CONDITION PARAVIEW_ENABLE_OPENVDB
505 MODULES VTK::IOOpenVDB
509 CONDITION PARAVIEW_ENABLE_NANOVDB
510 MODULES VTK::IONanoVDB
514 CONDITION PARAVIEW_ENABLE_FFMPEG
515 MODULES VTK::IOFFMPEG
519 CONDITION PARAVIEW_ENABLE_CGNS_READER
520 MODULES VTK::IOCGNSReader
524 CONDITION PARAVIEW_ENABLE_CGNS_WRITER
525 MODULES ParaView::VTKExtensionsIOCGNSWriter
529 CONDITION PARAVIEW_ENABLE_CGNS_WRITER AND PARAVIEW_USE_MPI
530 MODULES ParaView::VTKExtensionsIOParallelCGNSWriter
534 CONDITION PARAVIEW_ENABLE_WEB AND PARAVIEW_USE_PYTHON
540 CONDITION PARAVIEW_USE_SERIALIZATION
541 MODULES VTK::SerializationManager
545 CONDITION PARAVIEW_ENABLE_OCCT
550 CONDITION PARAVIEW_ENABLE_IFC
555 CONDITION PARAVIEW_BUILD_CANONICAL
556 MODULES ParaView::VTKExtensionsFiltersGeneral
557 VTK::DomainsChemistry
561 VTK::FiltersExtraction
562 VTK::FiltersFlowPaths
567 VTK::FiltersHyperTree
570 VTK::FiltersParallelDIY2
571 VTK::FiltersParallelVerdict
573 VTK::FiltersStatistics
583 VTK::IOAsynchronous # needed
for cinema
596 CONDITION PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_NONESSENTIAL
611 VTK::IOParallelExodus
612 VTK::IOParallelLSDyna
621 CONDITION PARAVIEW_ENABLE_RENDERING AND PARAVIEW_BUILD_CANONICAL
622 MODULES VTK::FiltersTexture
623 VTK::RenderingCellGrid
624 VTK::RenderingFreeType
628 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_USE_PYTHON
629 MODULES VTK::ParallelMPI4Py)
632 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_BUILD_CANONICAL
633 MODULES VTK::FiltersParallelFlowPaths
634 VTK::FiltersParallelGeometry
635 VTK::FiltersParallelMPI
639 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_NONESSENTIAL
640 MODULES VTK::IOParallelNetCDF
644 CONDITION PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_RENDERING AND PARAVIEW_ENABLE_NONESSENTIAL
645 MODULES ParaView::RemotingMisc
646 ParaView::RemotingExport
647 ParaView::RemotingLive
648 ParaView::RemotingAnimation)
650 # Legacy Catalyst Python modules depends on paraview.tpl.cinema_python 652 CONDITION PARAVIEW_USE_PYTHON
653 MODULES ParaView::CinemaPython)
656 CONDITION PARAVIEW_ENABLE_CATALYST
657 MODULES VTK::IOCatalystConduit
660 if (NOT PARAVIEW_ENABLE_NONESSENTIAL)
661 # This ensures that we don't ever enable certain problematic 662 # modules when PARAVIEW_ENABLE_NONESSENTIAL is OFF. 663 set(nonessential_modules
670 # PARAVIEW_ENABLE_CGNS_* are the only options that can force the need
for cgns
671 # TPL when PARAVIEW_ENABLE_NONESSENTIAL is
true.
672 if (NOT PARAVIEW_ENABLE_CGNS_READER AND NOT PARAVIEW_ENABLE_CGNS_WRITER)
673 list(APPEND nonessential_modules
676 # if testing is enabled, this is expected to have hdf5 TPL 677 # as VTK::IOHDF is a dependency of vtkTestingCore. But usual features should not 679 if (PARAVIEW_BUILD_TESTING STREQUAL
"OFF")
680 list(APPEND nonessential_modules
685 if (PARAVIEW_BUILD_EDITION_STRICT)
686 # Reject non-essential modules if in strict mode 687 list(APPEND paraview_rejected_modules
688 ${nonessential_modules})
690 foreach (nonessential_module IN LISTS nonessential_modules)
691 set(
"_vtk_module_reason_${nonessential_module}" 692 "via `PARAVIEW_ENABLE_NONESSENTIAL` (via `PARAVIEW_BUILD_EDITION=${PARAVIEW_BUILD_EDITION}`)")
695 function (_paraview_io_option_conflict option
name)
696 set(_error_level FATAL_ERROR)
697 if (NOT PARAVIEW_BUILD_EDITION_STRICT)
698 # Demote fatal error to debug for diagnostic purposes only. 699 set(_error_level DEBUG)
702 message(${_error_level}
703 "ParaView is configured without I/O support (via the " 704 "${PARAVIEW_BUILD_EDITION} edition) which is incompatible with the " 705 "request for ${name} support (via the `${option}` configure option)")
709 _paraview_io_option_conflict(PARAVIEW_ENABLE_ADIOS2
"ADIOS 2.x")
710 _paraview_io_option_conflict(PARAVIEW_ENABLE_ALEMBIC Alembic)
711 _paraview_io_option_conflict(PARAVIEW_ENABLE_FFMPEG FFmpeg)
712 _paraview_io_option_conflict(PARAVIEW_ENABLE_FIDES Fides)
713 _paraview_io_option_conflict(PARAVIEW_ENABLE_GDAL GDAL)
714 _paraview_io_option_conflict(PARAVIEW_ENABLE_LAS LAS)
715 _paraview_io_option_conflict(PARAVIEW_ENABLE_MOTIONFX MotionFX)
716 _paraview_io_option_conflict(PARAVIEW_ENABLE_OPENTURNS OpenTURNS)
717 _paraview_io_option_conflict(PARAVIEW_ENABLE_PDAL PDAL)
718 _paraview_io_option_conflict(PARAVIEW_ENABLE_VISITBRIDGE VisItBridge)
719 _paraview_io_option_conflict(PARAVIEW_ENABLE_XDMF2
xdmf2)
720 _paraview_io_option_conflict(PARAVIEW_ENABLE_XDMF3 xdmf3)
723 if (NOT PARAVIEW_ENABLE_RENDERING)
724 # This ensures that we don't ever enable OpenGL 725 # modules when PARAVIEW_ENABLE_RENDERING is OFF. 726 set(rendering_modules
728 if (PARAVIEW_BUILD_EDITION_STRICT)
729 # Reject rendering modules if in strict mode 730 list(APPEND paraview_rejected_modules
731 ${rendering_modules})
733 foreach (rendering_module IN LISTS rendering_modules)
734 set(
"_vtk_module_reason_${rendering_module}" 735 "via `PARAVIEW_ENABLE_RENDERING` (via `PARAVIEW_BUILD_EDITION=${PARAVIEW_BUILD_EDITION}`)")
738 function (_paraview_rendering_option_conflict option
name)
739 set(_error_level FATAL_ERROR)
740 if (NOT PARAVIEW_BUILD_EDITION_STRICT)
741 # Demote fatal error to debug for diagnostic purposes only. 742 set(_error_level DEBUG)
745 message(${_error_level}
746 "ParaView is configured without Rendering support (via the " 747 "${PARAVIEW_BUILD_EDITION} edition) which is incompatible with the " 748 "request for ${name} support (via the `${option}` configure option)")
752 _paraview_rendering_option_conflict(PARAVIEW_ENABLE_RAYTRACING raytracing)
753 _paraview_rendering_option_conflict(PARAVIEW_USE_QT Qt)
756 if (paraview_requested_modules)
757 list(REMOVE_DUPLICATES paraview_requested_modules)
760 if (paraview_rejected_modules)
761 list(REMOVE_DUPLICATES paraview_rejected_modules)
macro paraview_require_module()
Conditionally require/reject optional modules.
#define BUILD_SHARED_LIBS
function vtk_deprecated_setting(output_default, new, old, intended_default)
function vtk_obsolete_setting(old)