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 set(PARAVIEW_BUILD_CANONICAL OFF)
58 set(PARAVIEW_ENABLE_RENDERING OFF)
59 set(PARAVIEW_ENABLE_NONESSENTIAL OFF)
60 if (PARAVIEW_BUILD_EDITION STREQUAL
"CORE")
62 elseif (PARAVIEW_BUILD_EDITION STREQUAL
"RENDERING")
63 set(PARAVIEW_ENABLE_RENDERING ON)
64 elseif (PARAVIEW_BUILD_EDITION STREQUAL
"CATALYST")
65 set(PARAVIEW_BUILD_CANONICAL ON)
66 elseif (PARAVIEW_BUILD_EDITION STREQUAL
"CATALYST_RENDERING")
67 set(PARAVIEW_ENABLE_RENDERING ON)
68 set(PARAVIEW_BUILD_CANONICAL ON)
69 elseif (PARAVIEW_BUILD_EDITION STREQUAL
"CANONICAL")
70 set(PARAVIEW_ENABLE_RENDERING ON)
71 set(PARAVIEW_BUILD_CANONICAL ON)
72 set(PARAVIEW_ENABLE_NONESSENTIAL ON)
75 # We want to warn users if PARAVIEW_BUILD_EDITION is changed after first configure since the default 76 # state of various other settings may not be what user expects. 77 if (DEFINED _paraview_build_edition_cached AND
78 NOT _paraview_build_edition_cached STREQUAL PARAVIEW_BUILD_EDITION)
80 "Changing `PARAVIEW_BUILD_EDITION` after first configure will not setup " 81 "defaults for others settings correctly e.g. plugins enabled. It is " 82 "recommended that you start with a clean build directory and pass the " 83 "option to CMake using " 84 "'-DPARAVIEW_BUILD_EDITION:STRING=${PARAVIEW_BUILD_EDITION}'.")
86 set(_paraview_build_edition_cached "${PARAVIEW_BUILD_EDITION}
" CACHE INTERNAL "") 88 set(VTK_GROUP_ENABLE_PARAVIEW_CORE "YES
" CACHE INTERNAL "") 89 if (PARAVIEW_BUILD_CANONICAL) 90 set(VTK_GROUP_ENABLE_PARAVIEW_CANONICAL "YES
" CACHE INTERNAL "") 92 set(VTK_GROUP_ENABLE_PARAVIEW_CANONICAL "NO
" CACHE INTERNAL "") 95 #======================================================================== 97 # Options that affect the build capabilities. 98 # These should begin with `PARAVIEW_USE_`. 99 #======================================================================== 101 option(PARAVIEW_USE_MPI "Enable MPI support
for parallel computing
" OFF) 102 option(PARAVIEW_SERIAL_TESTS_USE_MPIEXEC 103 "Used
on HPC to run serial tests
on compute nodes
" OFF) 104 mark_as_advanced(PARAVIEW_SERIAL_TESTS_USE_MPIEXEC) 105 option(PARAVIEW_USE_CUDA "Support CUDA compilation
" OFF) 107 vtk_deprecated_setting(default_use_viskores PARAVIEW_USE_VISKORES PARAVIEW_USE_VTKM "${PARAVIEW_ENABLE_NONESSENTIAL}
") 108 option(PARAVIEW_USE_VISKORES "Enable Viskores accelerated algorithms
" "${default_use_viskores}
") 110 if (UNIX AND NOT APPLE) 111 option(PARAVIEW_USE_MEMKIND "Build support
for extended memory
" OFF) 114 option(PARAVIEW_ENABLE_OPENVDB "Enable the OpenVDB Writer
" OFF) 116 option(PARAVIEW_GENERATE_SPDX "Generate SPDX file
for each module.
" OFF) 117 mark_as_advanced(PARAVIEW_GENERATE_SPDX) 119 # Add option to disable Fortran 121 include(CheckFortran) 122 check_fortran_support() 123 if (CMAKE_Fortran_COMPILER) 124 set(_has_fortran TRUE) 126 set(_has_fortran FALSE) 128 cmake_dependent_option(PARAVIEW_USE_FORTRAN "Enable Fortran support
" ON 130 mark_as_advanced(PARAVIEW_USE_FORTRAN) 134 vtk_deprecated_setting(python_default PARAVIEW_USE_PYTHON PARAVIEW_ENABLE_PYTHON OFF) 135 option(PARAVIEW_USE_PYTHON "Enable/Disable Python scripting support
" "${python_default}
") 137 option(PARAVIEW_USE_SERIALIZATION "Enable/Disable Serialization support
" OFF) 139 # Currently, we're making `PARAVIEW_USE_QT` available only when doing CANONICAL 140 # builds with RENDERING. This is technically not necessary so we can support that 141 # use-case if needed in future but will require some work to make sure the Qt components 142 # work correctly with missing proxies. 143 vtk_deprecated_setting(qt_gui_default PARAVIEW_USE_QT PARAVIEW_BUILD_QT_GUI "ON
") 144 cmake_dependent_option(PARAVIEW_USE_QT 145 "Enable Qt-support needed
for graphical UI
" "${qt_gui_default}
" 146 "PARAVIEW_BUILD_CANONICAL;PARAVIEW_ENABLE_RENDERING;PARAVIEW_ENABLE_NONESSENTIAL
" OFF) 148 # Add an option to enable using Qt WebEngine for widgets, as needed. 149 # Default is OFF. We don't want to depend on WebEngine unless absolutely needed. 150 cmake_dependent_option(PARAVIEW_USE_QTWEBENGINE 151 "Use Qt WebEngine components as needed.
" OFF 152 "PARAVIEW_USE_QT
" OFF) 153 mark_as_advanced(PARAVIEW_USE_QTWEBENGINE) 155 # Add an option to enable using Qt Help, as needed. 156 # Default is ON to enable integrated help/documentation. 157 cmake_dependent_option(PARAVIEW_USE_QTHELP 158 "Use Qt Help infrastructure as needed.
" ON 159 "PARAVIEW_USE_QT
" OFF) 160 mark_as_advanced(PARAVIEW_USE_QTHELP) 162 if (PARAVIEW_USE_QTHELP AND NOT PARAVIEW_USE_QTWEBENGINE) 163 message(STATUS "Using
'QtHelp' without
'QtWebEngine' will ignore embedded javascript and *.js files
for documentation") 166 if (PARAVIEW_ENABLE_RAYTRACING AND VTK_ENABLE_OSPRAY) 167 set(paraview_use_materialeditor ON) 169 set(paraview_use_materialeditor OFF) 172 #======================================================================== 174 # Options that toggle features. These should begin with `PARAVIEW_ENABLE_`. 175 #======================================================================== 177 vtk_deprecated_setting(raytracing_default PARAVIEW_ENABLE_RAYTRACING PARAVIEW_USE_RAYTRACING "OFF
") 178 option(PARAVIEW_ENABLE_RAYTRACING "Build ParaView with OSPray, ANARI and/or OptiX ray-tracing support
" "${raytracing_default}
") 180 cmake_dependent_option(PARAVIEW_ENABLE_ANARI 181 "Enable Anari Support
" OFF 182 "PARAVIEW_ENABLE_RAYTRACING
" ON) 184 set(paraview_web_default ON) 185 if (PARAVIEW_USE_PYTHON AND WIN32) 186 include(ParaViewFindPythonModules) 187 find_python_module(win32api have_pywin32) 188 set(paraview_web_default "${have_pywin32}
") 191 if (NOT PARAVIEW_BUILD_EDITION STREQUAL "CANONICAL
") 192 set(paraview_web_default OFF) 194 cmake_dependent_option(PARAVIEW_ENABLE_WEB "Enable/Disable web support
" "${paraview_web_default}
" 195 "PARAVIEW_USE_PYTHON
" OFF) 197 # NvPipe requires an NVIDIA GPU. 198 option(PARAVIEW_ENABLE_NVPIPE "Build ParaView with NvPipe remoting. Requires CUDA and an NVIDIA GPU
" OFF) 199 if (PARAVIEW_ENABLE_NVPIPE) 201 "NvPipe is not longer supported. See
" 203 set(PARAVIEW_ENABLE_NVPIPE OFF)
206 option(PARAVIEW_ENABLE_ALEMBIC
"Enable Alembic support." OFF)
208 option(PARAVIEW_ENABLE_GDAL
"Enable GDAL support." OFF)
210 option(PARAVIEW_ENABLE_LAS
"Enable LAS support." OFF)
212 option(PARAVIEW_ENABLE_OPENTURNS
"Enable OpenTURNS support." OFF)
214 option(PARAVIEW_ENABLE_PDAL
"Enable PDAL support." OFF)
216 option(PARAVIEW_ENABLE_MOTIONFX
"Enable MotionFX support." OFF)
218 option(PARAVIEW_ENABLE_MOMENTINVARIANTS
"Enable MomentInvariants filters" OFF)
220 option(PARAVIEW_ENABLE_LOOKINGGLASS
"Enable LookingGlass displays" OFF)
222 option(PARAVIEW_ENABLE_VISITBRIDGE
"Enable VisIt readers." OFF)
224 option(PARAVIEW_ENABLE_CATALYST
"Enable ParaViewCatalyst implementation" OFF)
226 # default to ON for CANONICAL builds, else OFF. 227 set(xdmf2_default OFF)
228 if (PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_NONESSENTIAL)
229 set(xdmf2_default ON)
231 option(PARAVIEW_ENABLE_XDMF2
"Enable Xdmf2 support." "${xdmf2_default}")
233 option(PARAVIEW_ENABLE_XDMF3
"Enable Xdmf3 support." OFF)
235 option(PARAVIEW_ENABLE_ADIOS2
"Enable ADIOS 2.x support." OFF)
237 option(PARAVIEW_ENABLE_FIDES
"Enable Fides support." OFF)
239 option(PARAVIEW_ENABLE_FFMPEG
"Enable FFMPEG Support." OFF)
241 option(PARAVIEW_ENABLE_OCCT
"Enable OCCT Support." OFF)
243 option(PARAVIEW_ENABLE_IFC
"Enable IFC Support." OFF)
245 option(PARAVIEW_BUILD_TRANSLATIONS
"Generate translation files" OFF)
246 if (PARAVIEW_BUILD_TRANSLATIONS)
247 set(PARAVIEW_TRANSLATIONS_DIRECTORY
"${CMAKE_BINARY_DIR}/Translations" CACHE STRING
248 "The directory containing translation files")
251 # If building on Unix with MPI enabled, we will present another option to 252 # enable building of CosmoTools VTK extensions. This option is by default 253 # OFF and set to OFF if ParaView is not built with MPI. 254 cmake_dependent_option(PARAVIEW_ENABLE_COSMOTOOLS
255 "Build ParaView with CosmoTools VTK Extensions" OFF
256 "UNIX;PARAVIEW_USE_MPI" OFF)
258 # PARAVIEW_ENABLE_CGNS_* option is only shown when PARAVIEW_ENABLE_NONESSENTIAL is 259 # OFF and then it defaults to OFF. If PARAVIEW_ENABLE_NONESSENTIAL is ON, then 260 # PARAVIEW_ENABLE_CGNS_* is set to ON as well and presented to the user at all. 261 cmake_dependent_option(PARAVIEW_ENABLE_CGNS_READER
262 "Enable CGNS Reader Support" OFF
263 "NOT PARAVIEW_ENABLE_NONESSENTIAL" ON)
264 cmake_dependent_option(PARAVIEW_ENABLE_CGNS_WRITER
265 "Enable CGNS Reader Support" OFF
266 "NOT PARAVIEW_ENABLE_NONESSENTIAL" ON)
268 #======================================================================== 269 # MISCELLANEOUS OPTIONS: 270 # Options that are hard to classify. Keep this list minimal. 271 # These should be advanced by default. 272 #======================================================================== 273 option(PARAVIEW_INSTALL_DEVELOPMENT_FILES
"Install development files to the install tree" ON)
274 mark_as_advanced(PARAVIEW_INSTALL_DEVELOPMENT_FILES)
276 option(PARAVIEW_RELOCATABLE_INSTALL
"Do not embed hard-coded paths into the install" ON)
277 mark_as_advanced(PARAVIEW_RELOCATABLE_INSTALL)
280 cmake_dependent_option(PARAVIEW_INITIALIZE_MPI_ON_CLIENT
281 "Initialize MPI on client-processes by default. Can be overridden using command line arguments" ON
282 "PARAVIEW_USE_MPI" OFF)
283 mark_as_advanced(PARAVIEW_INITIALIZE_MPI_ON_CLIENT)
285 set(PARAVIEW_LOGGING_TIME_PRECISION
"3" 286 CACHE STRING
"Precision of loguru scope timers. 3=ms, 6=us, 9=ns")
287 mark_as_advanced(PARAVIEW_LOGGING_TIME_PRECISION)
288 set(known_logging_precisions 3 6 9)
289 set_property(CACHE PARAVIEW_LOGGING_TIME_PRECISION
291 STRINGS ${known_logging_precisions})
292 if (NOT PARAVIEW_LOGGING_TIME_PRECISION IN_LIST known_logging_precisions)
293 string(REPLACE
";" ", " known_logging_precisions_list
"${known_logging_precisions}")
295 "`PARAVIEW_LOGGING_TIME_PRECISION` must be one of " 296 "${known_logging_precisions_list}; given '${PARAVIEW_LOGGING_TIME_PRECISION}'")
299 #======================================================================== 300 # OBSOLETE OPTIONS: mark obsolete settings 301 #======================================================================== 309 #======================================================================================== 310 # Build up list of required and rejected modules 311 #======================================================================================== 312 set(paraview_requested_modules)
313 set(paraview_rejected_modules)
316 Conditionally require/reject optional modules
318 Use
this macro to conditionally require (or reject) modules.
323 [CONDITION <condition>]
327 The arguments are as follows:
329 * `MODULES`: (Required) The list of modules.
330 * `CONDITION`: (Defaults to `TRUE`) The condition under which the modules
331 specified are added to the requested list.
332 * `EXCLUSIVE`: When sepcified,
if `CONDITION` is
false, the module will be
333 added to the rejected modules list.
336 cmake_parse_arguments(pem
342 if (pem_UNPARSED_ARGUMENTS)
344 "Unparsed arguments for `paraview_require_module`: " 345 "${pem_UNPARSED_ARGUMENTS}")
348 if (NOT DEFINED pem_CONDITION)
349 set(pem_CONDITION TRUE)
352 if (${pem_CONDITION})
353 # message(
"${pem_CONDITION} == TRUE")
354 list(APPEND paraview_requested_modules ${pem_MODULES})
355 foreach (_pem_module IN LISTS _pem_MODULES)
356 set(
"_vtk_module_reason_${_pem_module}" 357 "via `${pem_CONDITION}`")
359 elseif (pem_EXCLUSIVE)
360 # message(
"${pem_CONDITION} == FALSE")
361 list(APPEND paraview_rejected_modules ${pem_MODULES})
362 foreach (_pem_module IN LISTS _pem_MODULES)
363 set(
"_vtk_module_reason_${_pem_module}" 364 "via `${pem_CONDITION}`")
371 unset(pem_UNPARSED_ARGUMENTS)
375 # ensures that VTK::mpi module is rejected when MPI is not
enabled.
376 paraview_require_module(
377 CONDITION PARAVIEW_USE_MPI
378 MODULES VTK::ParallelMPI
383 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_ENABLE_RENDERING
384 MODULES VTK::RenderingParallelLIC
387 # ensures VTK::Python module is rejected when Python is not enabled. 389 CONDITION PARAVIEW_USE_PYTHON
391 VTK::PythonInterpreter
392 ParaView::PythonInterpreterPath
396 CONDITION PARAVIEW_USE_PYTHON AND PARAVIEW_ENABLE_RENDERING AND PARAVIEW_BUILD_CANONICAL
397 MODULES VTK::RenderingMatplotlib)
400 CONDITION PARAVIEW_USE_VISKORES
401 MODULES VTK::AcceleratorsVTKmFilters
405 CONDITION PARAVIEW_ENABLE_RAYTRACING AND PARAVIEW_ENABLE_RENDERING
406 MODULES VTK::RenderingRayTracing
410 CONDITION PARAVIEW_ENABLE_RAYTRACING AND PARAVIEW_ENABLE_RENDERING AND PARAVIEW_ENABLE_ANARI
411 MODULES VTK::RenderingAnari
415 CONDITION PARAVIEW_ENABLE_RAYTRACING AND VTK_ENABLE_OSPRAY
416 MODULES ParaView::VTKExtensionsShaderBall
420 CONDITION PARAVIEW_ENABLE_NVPIPE
425 CONDITION PARAVIEW_ENABLE_ALEMBIC
426 MODULES VTK::IOAlembic
430 CONDITION PARAVIEW_ENABLE_GDAL
435 CONDITION PARAVIEW_ENABLE_LAS
440 CONDITION PARAVIEW_ENABLE_OPENTURNS
441 MODULES VTK::FiltersOpenTURNS
445 CONDITION PARAVIEW_ENABLE_PDAL
450 CONDITION PARAVIEW_ENABLE_MOTIONFX
451 MODULES VTK::IOMotionFX
455 CONDITION PARAVIEW_ENABLE_MOMENTINVARIANTS
456 MODULES VTK::MomentInvariants
460 CONDITION PARAVIEW_ENABLE_MOMENTINVARIANTS AND PARAVIEW_USE_MPI
461 MODULES VTK::ParallelMomentInvariants
465 CONDITION PARAVIEW_ENABLE_LOOKINGGLASS
466 MODULES VTK::RenderingLookingGlass
470 CONDITION PARAVIEW_ENABLE_VISITBRIDGE
471 MODULES ParaView::IOVisItBridge
476 CONDITION PARAVIEW_ENABLE_XDMF2
481 CONDITION PARAVIEW_ENABLE_XDMF3
486 CONDITION PARAVIEW_ENABLE_ADIOS2
487 MODULES VTK::IOADIOS2
491 CONDITION PARAVIEW_ENABLE_FIDES
496 CONDITION PARAVIEW_ENABLE_OPENVDB
497 MODULES VTK::IOOpenVDB
501 CONDITION PARAVIEW_ENABLE_FFMPEG
502 MODULES VTK::IOFFMPEG
506 CONDITION PARAVIEW_ENABLE_CGNS_READER
507 MODULES VTK::IOCGNSReader
511 CONDITION PARAVIEW_ENABLE_CGNS_WRITER
512 MODULES ParaView::VTKExtensionsIOCGNSWriter
516 CONDITION PARAVIEW_ENABLE_CGNS_WRITER AND PARAVIEW_USE_MPI
517 MODULES ParaView::VTKExtensionsIOParallelCGNSWriter
521 CONDITION PARAVIEW_ENABLE_WEB AND PARAVIEW_USE_PYTHON
527 CONDITION PARAVIEW_USE_SERIALIZATION
528 MODULES VTK::SerializationManager
532 CONDITION PARAVIEW_ENABLE_OCCT
537 CONDITION PARAVIEW_ENABLE_IFC
542 CONDITION PARAVIEW_BUILD_CANONICAL
543 MODULES ParaView::VTKExtensionsFiltersGeneral
544 VTK::DomainsChemistry
548 VTK::FiltersExtraction
549 VTK::FiltersFlowPaths
554 VTK::FiltersHyperTree
557 VTK::FiltersParallelDIY2
558 VTK::FiltersParallelVerdict
560 VTK::FiltersStatistics
570 VTK::IOAsynchronous # needed
for cinema
583 CONDITION PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_NONESSENTIAL
598 VTK::IOParallelExodus
599 VTK::IOParallelLSDyna
608 CONDITION PARAVIEW_ENABLE_RENDERING AND PARAVIEW_BUILD_CANONICAL
609 MODULES VTK::FiltersTexture
610 VTK::RenderingCellGrid
611 VTK::RenderingFreeType
615 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_USE_PYTHON
616 MODULES VTK::ParallelMPI4Py)
619 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_BUILD_CANONICAL
620 MODULES VTK::FiltersParallelFlowPaths
621 VTK::FiltersParallelGeometry
622 VTK::FiltersParallelMPI
626 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_NONESSENTIAL
627 MODULES VTK::IOParallelNetCDF
631 CONDITION PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_RENDERING AND PARAVIEW_ENABLE_NONESSENTIAL
632 MODULES ParaView::RemotingMisc
633 ParaView::RemotingExport
634 ParaView::RemotingLive
635 ParaView::RemotingAnimation)
637 # Legacy Catalyst Python modules depends on paraview.tpl.cinema_python 639 CONDITION PARAVIEW_USE_PYTHON
640 MODULES ParaView::CinemaPython)
643 CONDITION PARAVIEW_ENABLE_CATALYST
644 MODULES VTK::IOCatalystConduit
647 if (NOT PARAVIEW_ENABLE_NONESSENTIAL)
648 # This ensures that we don't ever enable certain problematic 649 # modules when PARAVIEW_ENABLE_NONESSENTIAL is OFF. 650 set(nonessential_modules
657 # PARAVIEW_ENABLE_CGNS_* are the only options that can force the need
for cgns and
658 # hdf5 TPLs when PARAVIEW_ENABLE_NONESSENTIAL is
true.
659 if (NOT PARAVIEW_ENABLE_CGNS_READER AND NOT PARAVIEW_ENABLE_CGNS_WRITER)
660 list(APPEND nonessential_modules
665 list(APPEND paraview_rejected_modules
666 ${nonessential_modules})
667 foreach (nonessential_module IN LISTS nonessential_modules)
668 set(
"_vtk_module_reason_${nonessential_module}" 669 "via `PARAVIEW_ENABLE_NONESSENTIAL` (via `PARAVIEW_BUILD_EDITION=${PARAVIEW_BUILD_EDITION}`)")
672 function (_paraview_io_option_conflict option
name)
675 "ParaView is configured without I/O support (via the " 676 "${PARAVIEW_BUILD_EDITION} edition) which is incompatible with the " 677 "request for ${name} support (via the `${option}` configure option)")
681 _paraview_io_option_conflict(PARAVIEW_ENABLE_ADIOS2
"ADIOS 2.x")
682 _paraview_io_option_conflict(PARAVIEW_ENABLE_ALEMBIC Alembic)
683 _paraview_io_option_conflict(PARAVIEW_ENABLE_FFMPEG FFmpeg)
684 _paraview_io_option_conflict(PARAVIEW_ENABLE_FIDES Fides)
685 _paraview_io_option_conflict(PARAVIEW_ENABLE_GDAL GDAL)
686 _paraview_io_option_conflict(PARAVIEW_ENABLE_LAS LAS)
687 _paraview_io_option_conflict(PARAVIEW_ENABLE_MOTIONFX MotionFX)
688 _paraview_io_option_conflict(PARAVIEW_ENABLE_OPENTURNS OpenTURNS)
689 _paraview_io_option_conflict(PARAVIEW_ENABLE_PDAL PDAL)
690 _paraview_io_option_conflict(PARAVIEW_ENABLE_VISITBRIDGE VisItBridge)
691 _paraview_io_option_conflict(PARAVIEW_ENABLE_XDMF2
xdmf2)
692 _paraview_io_option_conflict(PARAVIEW_ENABLE_XDMF3 xdmf3)
695 if (NOT PARAVIEW_ENABLE_RENDERING)
696 # This ensures that we don't ever enable OpenGL 697 # modules when PARAVIEW_ENABLE_RENDERING is OFF. 698 set(rendering_modules
700 list(APPEND paraview_rejected_modules
701 ${rendering_modules})
702 foreach (rendering_module IN LISTS rendering_modules)
703 set(
"_vtk_module_reason_${rendering_module}" 704 "via `PARAVIEW_ENABLE_RENDERING` (via `PARAVIEW_BUILD_EDITION=${PARAVIEW_BUILD_EDITION}`)")
707 function (_paraview_rendering_option_conflict option
name)
710 "ParaView is configured without Rendering support (via the " 711 "${PARAVIEW_BUILD_EDITION} edition) which is incompatible with the " 712 "request for ${name} support (via the `${option}` configure option)")
716 _paraview_rendering_option_conflict(PARAVIEW_ENABLE_RAYTRACING raytracing)
717 _paraview_rendering_option_conflict(PARAVIEW_USE_QT Qt)
720 if (paraview_requested_modules)
721 list(REMOVE_DUPLICATES paraview_requested_modules)
724 if (paraview_rejected_modules)
725 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)