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_BUILD_TRANSLATIONS
"Generate translation files" OFF)
244 if (PARAVIEW_BUILD_TRANSLATIONS)
245 set(PARAVIEW_TRANSLATIONS_DIRECTORY
"${CMAKE_BINARY_DIR}/Translations" CACHE STRING
246 "The directory containing translation files")
249 # If building on Unix with MPI enabled, we will present another option to 250 # enable building of CosmoTools VTK extensions. This option is by default 251 # OFF and set to OFF if ParaView is not built with MPI. 252 cmake_dependent_option(PARAVIEW_ENABLE_COSMOTOOLS
253 "Build ParaView with CosmoTools VTK Extensions" OFF
254 "UNIX;PARAVIEW_USE_MPI" OFF)
256 # PARAVIEW_ENABLE_CGNS_* option is only shown when PARAVIEW_ENABLE_NONESSENTIAL is 257 # OFF and then it defaults to OFF. If PARAVIEW_ENABLE_NONESSENTIAL is ON, then 258 # PARAVIEW_ENABLE_CGNS_* is set to ON as well and presented to the user at all. 259 cmake_dependent_option(PARAVIEW_ENABLE_CGNS_READER
260 "Enable CGNS Reader Support" OFF
261 "NOT PARAVIEW_ENABLE_NONESSENTIAL" ON)
262 cmake_dependent_option(PARAVIEW_ENABLE_CGNS_WRITER
263 "Enable CGNS Reader Support" OFF
264 "NOT PARAVIEW_ENABLE_NONESSENTIAL" ON)
266 #======================================================================== 267 # MISCELLANEOUS OPTIONS: 268 # Options that are hard to classify. Keep this list minimal. 269 # These should be advanced by default. 270 #======================================================================== 271 option(PARAVIEW_INSTALL_DEVELOPMENT_FILES
"Install development files to the install tree" ON)
272 mark_as_advanced(PARAVIEW_INSTALL_DEVELOPMENT_FILES)
274 option(PARAVIEW_RELOCATABLE_INSTALL
"Do not embed hard-coded paths into the install" ON)
275 mark_as_advanced(PARAVIEW_RELOCATABLE_INSTALL)
278 cmake_dependent_option(PARAVIEW_INITIALIZE_MPI_ON_CLIENT
279 "Initialize MPI on client-processes by default. Can be overridden using command line arguments" ON
280 "PARAVIEW_USE_MPI" OFF)
281 mark_as_advanced(PARAVIEW_INITIALIZE_MPI_ON_CLIENT)
283 set(PARAVIEW_LOGGING_TIME_PRECISION
"3" 284 CACHE STRING
"Precision of loguru scope timers. 3=ms, 6=us, 9=ns")
285 mark_as_advanced(PARAVIEW_LOGGING_TIME_PRECISION)
286 set(known_logging_precisions 3 6 9)
287 set_property(CACHE PARAVIEW_LOGGING_TIME_PRECISION
289 STRINGS ${known_logging_precisions})
290 if (NOT PARAVIEW_LOGGING_TIME_PRECISION IN_LIST known_logging_precisions)
291 string(REPLACE
";" ", " known_logging_precisions_list
"${known_logging_precisions}")
293 "`PARAVIEW_LOGGING_TIME_PRECISION` must be one of " 294 "${known_logging_precisions_list}; given '${PARAVIEW_LOGGING_TIME_PRECISION}'")
297 #======================================================================== 298 # OBSOLETE OPTIONS: mark obsolete settings 299 #======================================================================== 307 #======================================================================================== 308 # Build up list of required and rejected modules 309 #======================================================================================== 310 set(paraview_requested_modules)
311 set(paraview_rejected_modules)
314 Conditionally require/reject optional modules
316 Use
this macro to conditionally require (or reject) modules.
321 [CONDITION <condition>]
325 The arguments are as follows:
327 * `MODULES`: (Required) The list of modules.
328 * `CONDITION`: (Defaults to `TRUE`) The condition under which the modules
329 specified are added to the requested list.
330 * `EXCLUSIVE`: When sepcified,
if `CONDITION` is
false, the module will be
331 added to the rejected modules list.
334 cmake_parse_arguments(pem
340 if (pem_UNPARSED_ARGUMENTS)
342 "Unparsed arguments for `paraview_require_module`: " 343 "${pem_UNPARSED_ARGUMENTS}")
346 if (NOT DEFINED pem_CONDITION)
347 set(pem_CONDITION TRUE)
350 if (${pem_CONDITION})
351 # message(
"${pem_CONDITION} == TRUE")
352 list(APPEND paraview_requested_modules ${pem_MODULES})
353 foreach (_pem_module IN LISTS _pem_MODULES)
354 set(
"_vtk_module_reason_${_pem_module}" 355 "via `${pem_CONDITION}`")
357 elseif (pem_EXCLUSIVE)
358 # message(
"${pem_CONDITION} == FALSE")
359 list(APPEND paraview_rejected_modules ${pem_MODULES})
360 foreach (_pem_module IN LISTS _pem_MODULES)
361 set(
"_vtk_module_reason_${_pem_module}" 362 "via `${pem_CONDITION}`")
369 unset(pem_UNPARSED_ARGUMENTS)
373 # ensures that VTK::mpi module is rejected when MPI is not
enabled.
374 paraview_require_module(
375 CONDITION PARAVIEW_USE_MPI
376 MODULES VTK::ParallelMPI
381 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_ENABLE_RENDERING
382 MODULES VTK::RenderingParallelLIC
385 # ensures VTK::Python module is rejected when Python is not enabled. 387 CONDITION PARAVIEW_USE_PYTHON
389 VTK::PythonInterpreter
390 ParaView::PythonInterpreterPath
394 CONDITION PARAVIEW_USE_PYTHON AND PARAVIEW_ENABLE_RENDERING AND PARAVIEW_BUILD_CANONICAL
395 MODULES VTK::RenderingMatplotlib)
398 CONDITION PARAVIEW_USE_VISKORES
399 MODULES VTK::AcceleratorsVTKmFilters
403 CONDITION PARAVIEW_ENABLE_RAYTRACING AND PARAVIEW_ENABLE_RENDERING
404 MODULES VTK::RenderingRayTracing
408 CONDITION PARAVIEW_ENABLE_RAYTRACING AND PARAVIEW_ENABLE_RENDERING AND PARAVIEW_ENABLE_ANARI
409 MODULES VTK::RenderingAnari
413 CONDITION PARAVIEW_ENABLE_RAYTRACING AND VTK_ENABLE_OSPRAY
414 MODULES ParaView::VTKExtensionsShaderBall
418 CONDITION PARAVIEW_ENABLE_NVPIPE
423 CONDITION PARAVIEW_ENABLE_ALEMBIC
424 MODULES VTK::IOAlembic
428 CONDITION PARAVIEW_ENABLE_GDAL
433 CONDITION PARAVIEW_ENABLE_LAS
438 CONDITION PARAVIEW_ENABLE_OPENTURNS
439 MODULES VTK::FiltersOpenTURNS
443 CONDITION PARAVIEW_ENABLE_PDAL
448 CONDITION PARAVIEW_ENABLE_MOTIONFX
449 MODULES VTK::IOMotionFX
453 CONDITION PARAVIEW_ENABLE_MOMENTINVARIANTS
454 MODULES VTK::MomentInvariants
458 CONDITION PARAVIEW_ENABLE_MOMENTINVARIANTS AND PARAVIEW_USE_MPI
459 MODULES VTK::ParallelMomentInvariants
463 CONDITION PARAVIEW_ENABLE_LOOKINGGLASS
464 MODULES VTK::RenderingLookingGlass
468 CONDITION PARAVIEW_ENABLE_VISITBRIDGE
469 MODULES ParaView::IOVisItBridge
474 CONDITION PARAVIEW_ENABLE_XDMF2
479 CONDITION PARAVIEW_ENABLE_XDMF3
484 CONDITION PARAVIEW_ENABLE_ADIOS2
485 MODULES VTK::IOADIOS2
489 CONDITION PARAVIEW_ENABLE_FIDES
494 CONDITION PARAVIEW_ENABLE_OPENVDB
495 MODULES VTK::IOOpenVDB
499 CONDITION PARAVIEW_ENABLE_FFMPEG
500 MODULES VTK::IOFFMPEG
504 CONDITION PARAVIEW_ENABLE_CGNS_READER
505 MODULES VTK::IOCGNSReader
509 CONDITION PARAVIEW_ENABLE_CGNS_WRITER
510 MODULES ParaView::VTKExtensionsIOCGNSWriter
514 CONDITION PARAVIEW_ENABLE_CGNS_WRITER AND PARAVIEW_USE_MPI
515 MODULES ParaView::VTKExtensionsIOParallelCGNSWriter
519 CONDITION PARAVIEW_ENABLE_WEB AND PARAVIEW_USE_PYTHON
525 CONDITION PARAVIEW_USE_SERIALIZATION
526 MODULES VTK::SerializationManager
530 CONDITION PARAVIEW_ENABLE_OCCT
535 CONDITION PARAVIEW_BUILD_CANONICAL
536 MODULES ParaView::VTKExtensionsFiltersGeneral
537 VTK::DomainsChemistry
541 VTK::FiltersExtraction
542 VTK::FiltersFlowPaths
547 VTK::FiltersHyperTree
550 VTK::FiltersParallelDIY2
551 VTK::FiltersParallelVerdict
553 VTK::FiltersStatistics
563 VTK::IOAsynchronous # needed
for cinema
576 CONDITION PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_NONESSENTIAL
591 VTK::IOParallelExodus
592 VTK::IOParallelLSDyna
601 CONDITION PARAVIEW_ENABLE_RENDERING AND PARAVIEW_BUILD_CANONICAL
602 MODULES VTK::FiltersTexture
603 VTK::RenderingCellGrid
604 VTK::RenderingFreeType
608 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_USE_PYTHON
609 MODULES VTK::ParallelMPI4Py)
612 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_BUILD_CANONICAL
613 MODULES VTK::FiltersParallelFlowPaths
614 VTK::FiltersParallelGeometry
615 VTK::FiltersParallelMPI
619 CONDITION PARAVIEW_USE_MPI AND PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_NONESSENTIAL
620 MODULES VTK::IOParallelNetCDF
624 CONDITION PARAVIEW_BUILD_CANONICAL AND PARAVIEW_ENABLE_RENDERING AND PARAVIEW_ENABLE_NONESSENTIAL
625 MODULES ParaView::RemotingMisc
626 ParaView::RemotingExport
627 ParaView::RemotingLive
628 ParaView::RemotingAnimation)
630 # Legacy Catalyst Python modules depends on paraview.tpl.cinema_python 632 CONDITION PARAVIEW_USE_PYTHON
633 MODULES ParaView::CinemaPython)
636 CONDITION PARAVIEW_ENABLE_CATALYST
637 MODULES VTK::IOCatalystConduit
640 if (NOT PARAVIEW_ENABLE_NONESSENTIAL)
641 # This ensures that we don't ever enable certain problematic 642 # modules when PARAVIEW_ENABLE_NONESSENTIAL is OFF. 643 set(nonessential_modules
650 # PARAVIEW_ENABLE_CGNS_* are the only options that can force the need
for cgns and
651 # hdf5 TPLs when PARAVIEW_ENABLE_NONESSENTIAL is
true.
652 if (NOT PARAVIEW_ENABLE_CGNS_READER AND NOT PARAVIEW_ENABLE_CGNS_WRITER)
653 list(APPEND nonessential_modules
658 list(APPEND paraview_rejected_modules
659 ${nonessential_modules})
660 foreach (nonessential_module IN LISTS nonessential_modules)
661 set(
"_vtk_module_reason_${nonessential_module}" 662 "via `PARAVIEW_ENABLE_NONESSENTIAL` (via `PARAVIEW_BUILD_EDITION=${PARAVIEW_BUILD_EDITION}`)")
665 function (_paraview_io_option_conflict option
name)
668 "ParaView is configured without I/O support (via the " 669 "${PARAVIEW_BUILD_EDITION} edition) which is incompatible with the " 670 "request for ${name} support (via the `${option}` configure option)")
674 _paraview_io_option_conflict(PARAVIEW_ENABLE_ADIOS2
"ADIOS 2.x")
675 _paraview_io_option_conflict(PARAVIEW_ENABLE_ALEMBIC Alembic)
676 _paraview_io_option_conflict(PARAVIEW_ENABLE_FFMPEG FFmpeg)
677 _paraview_io_option_conflict(PARAVIEW_ENABLE_FIDES Fides)
678 _paraview_io_option_conflict(PARAVIEW_ENABLE_GDAL GDAL)
679 _paraview_io_option_conflict(PARAVIEW_ENABLE_LAS LAS)
680 _paraview_io_option_conflict(PARAVIEW_ENABLE_MOTIONFX MotionFX)
681 _paraview_io_option_conflict(PARAVIEW_ENABLE_OPENTURNS OpenTURNS)
682 _paraview_io_option_conflict(PARAVIEW_ENABLE_PDAL PDAL)
683 _paraview_io_option_conflict(PARAVIEW_ENABLE_VISITBRIDGE VisItBridge)
684 _paraview_io_option_conflict(PARAVIEW_ENABLE_XDMF2
xdmf2)
685 _paraview_io_option_conflict(PARAVIEW_ENABLE_XDMF3 xdmf3)
688 if (NOT PARAVIEW_ENABLE_RENDERING)
689 # This ensures that we don't ever enable OpenGL 690 # modules when PARAVIEW_ENABLE_RENDERING is OFF. 691 set(rendering_modules
693 list(APPEND paraview_rejected_modules
694 ${rendering_modules})
695 foreach (rendering_module IN LISTS rendering_modules)
696 set(
"_vtk_module_reason_${rendering_module}" 697 "via `PARAVIEW_ENABLE_RENDERING` (via `PARAVIEW_BUILD_EDITION=${PARAVIEW_BUILD_EDITION}`)")
700 function (_paraview_rendering_option_conflict option
name)
703 "ParaView is configured without Rendering 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_rendering_option_conflict(PARAVIEW_ENABLE_RAYTRACING raytracing)
710 _paraview_rendering_option_conflict(PARAVIEW_USE_QT Qt)
713 if (paraview_requested_modules)
714 list(REMOVE_DUPLICATES paraview_requested_modules)
717 if (paraview_rejected_modules)
718 list(REMOVE_DUPLICATES paraview_rejected_modules)
macro paraview_require_module()
Conditionally require/reject optional modules.
#define VTK_LEGACY_REMOVE
#define BUILD_SHARED_LIBS
function vtk_deprecated_setting(output_default, new, old, intended_default)
function vtk_obsolete_setting(old)