Skip to content

Commit 3bf31ca

Browse files
committed
Merge pull request #987 from UV-CDAT/vtkweb-option
Create an option to enable vtkweb
2 parents ae90d4a + f0714ee commit 3bf31ca

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CMake/cdat_modules/vtk_external.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ if(CDAT_BUILD_OFFSCREEN)
7373
)
7474
endif()
7575

76+
if(CDAT_BUILD_WEB)
77+
list(APPEND vtk_build_args
78+
"-DVTK_Group_Web:BOOL=ON"
79+
)
80+
endif()
81+
7682
set(_vtk_module_options)
7783
foreach(_module ${_vtk_modules})
7884
list(APPEND _vtk_module_options "-DModule_${_module}:BOOL=ON")

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ include(CMakeDependentOption)
260260
cmake_dependent_option(CDAT_BUILD_OFFSCREEN "Use OSMesa for offscreen rendering." OFF
261261
"NOT APPLE" OFF)
262262

263+
# Option to enable vtkweb for cdatweb
264+
option(CDAT_BUILD_WEB "Build in Web support (VTKWeb, etc.)" OFF)
265+
263266
# Option to choose between easy_install and pip (crunchy ssl/man in the middle prevents us to use pip here...
264267
set(EGG_INSTALLER "PIP" CACHE STRING "Which package installer to use")
265268
set_property(CACHE EGG_INSTALLER PROPERTY STRINGS "PIP" "EASY_INSTALL")

0 commit comments

Comments
 (0)