Skip to content

Commit

Permalink
[vtk] Fix vtk[python] build failure (microsoft#8345)
Browse files Browse the repository at this point in the history
  • Loading branch information
NancyLi1013 authored and cbezault committed Sep 26, 2019
1 parent 13476c9 commit ad49c27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ports/vtk/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: vtk
Version: 8.2.0-6
Version: 8.2.0-7
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, libjpeg-turbo, proj4, lz4, libtheora, atlmfc (windows), eigen3, double-conversion, pugixml, libharu, sqlite3, netcdf-c
Expand Down
2 changes: 2 additions & 0 deletions ports/vtk/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ if(VTK_WITH_QT)
endif()

if(VTK_WITH_PYTHON)
vcpkg_find_acquire_program(PYTHON3)
list(APPEND ADDITIONAL_OPTIONS
-DVTK_WRAP_PYTHON=ON
-DVTK_PYTHON_VERSION=3
Expand Down Expand Up @@ -128,6 +129,7 @@ vcpkg_configure_cmake(
-DModule_vtkGUISupportMFC=${Module_vtkGUISupportMFC}
-DModule_vtkRenderingOpenVR=${Module_vtkRenderingOpenVR}
-DVTK_Group_MPI=${VTK_Group_MPI}
-DPYTHON_EXECUTABLE=${PYTHON3}

${ADDITIONAL_OPTIONS}
)
Expand Down

0 comments on commit ad49c27

Please sign in to comment.