aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorAngus Comrie <accomrie@gmail.com>2021-04-02 21:39:17 +0200
committerGitHub <noreply@github.com>2021-04-02 12:39:17 -0700
commit92608fb8b00384c504e95ffd4f5b84f5c492fa8a (patch)
treef2079ba56c258262d53d76cf7b1d57d3e2f16aba /ports
parent2afee4c5aad8f936ea2bbe58dcdff96d2eadc258 (diff)
downloadvcpkg-92608fb8b00384c504e95ffd4f5b84f5c492fa8a.tar.gz
vcpkg-92608fb8b00384c504e95ffd4f5b84f5c492fa8a.zip
[vtk] enables openvr module when openvr is listed (#17015)
* enables openvr module when openvr is listed * bumped port number * add version bump to json files
Diffstat (limited to 'ports')
-rw-r--r--ports/vtk/CONTROL2
-rw-r--r--ports/vtk/portfile.cmake6
2 files changed, 7 insertions, 1 deletions
diff --git a/ports/vtk/CONTROL b/ports/vtk/CONTROL
index 058530581..cd76b37bb 100644
--- a/ports/vtk/CONTROL
+++ b/ports/vtk/CONTROL
@@ -1,6 +1,6 @@
Source: vtk
Version: 9.0.1
-Port-Version: 5
+Port-Version: 6
Description: Software system for 3D computer graphics, image processing, and visualization
Homepage: https://github.com/Kitware/VTK
Build-Depends: zlib, libpng, tiff, libxml2, jsoncpp, glew, freetype, expat, hdf5[core], libjpeg-turbo, proj4, lz4, liblzma, libtheora, eigen3, double-conversion, pugixml, libharu[notiffsymbols], sqlite3, netcdf-c, utfcpp, libogg, pegtl-2
diff --git a/ports/vtk/portfile.cmake b/ports/vtk/portfile.cmake
index ecbd2be3a..596731a33 100644
--- a/ports/vtk/portfile.cmake
+++ b/ports/vtk/portfile.cmake
@@ -91,6 +91,12 @@ if("opengl" IN_LIST FEATURES)
)
endif()
+if ("openvr" IN_LIST FEATURES)
+ list(APPEND ADDITIONAL_OPTIONS
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR=YES
+ )
+endif()
+
if("cuda" IN_LIST FEATURES AND CMAKE_HOST_WIN32)
vcpkg_add_to_path("$ENV{CUDA_PATH}/bin")
endif()