Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CMake/cdat_modules/vtk_external.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ if(CDAT_BUILD_OFFSCREEN)
)
endif()

if(CDAT_BUILD_VTKWEB)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about CDAT_ENABLE_WEB? Or CDAT_BUILD_WEB?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CDAT_BUILD_* is consistent with the other options. To me, VTKWEB is more explicit unless there is something else that WEB will enable, but I don't have a strong opinion.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that: CDAT_BUILD_VTKWEB

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@doutriaux1 we don't want to expose vtkweb. Web option in the future will enable more than just vtkWeb.

list(APPEND vtk_build_args
"-DVTK_Group_Web:BOOL=ON"
)
endif()

set(_vtk_module_options)
foreach(_module ${_vtk_modules})
list(APPEND _vtk_module_options "-DModule_${_module}:BOOL=ON")
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ include(CMakeDependentOption)
cmake_dependent_option(CDAT_BUILD_OFFSCREEN "Use OSMesa for offscreen rendering." OFF
"NOT APPLE" OFF)

# Option to enable vtkweb for cdatweb
option(CDAT_BUILD_VTKWEB "Build VTKWeb with VTK" OFF)

# Option to choose between easy_install and pip (crunchy ssl/man in the middle prevents us to use pip here...
set(EGG_INSTALLER "PIP" CACHE STRING "Which package installer to use")
set_property(CACHE EGG_INSTALLER PROPERTY STRINGS "PIP" "EASY_INSTALL")
Expand Down