[WIP][vtk] add the option -DModule_vtkGUISupportMFC=ON (#4661)

* Update portfile.cmake

* [vtk] Only enable Module_vtkGUISupportMFC for Windows. Require atlmfc on Windows.
This commit is contained in:
MouhammadEV 2019-03-18 20:33:45 +01:00 committed by Phil Christensen
parent 2fc5b2815e
commit aed7d2e214
2 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Source: vtk Source: vtk
Version: 8.2.0-1 Version: 8.2.0-2
Description: Software system for 3D computer graphics, image processing, and visualization Description: Software system for 3D computer graphics, image processing, and visualization
Build-Depends: zlib, libpng, tiff, libxml2, jsoncpp, glew, freetype, expat, hdf5, libjpeg-turbo, proj4, lz4, libtheora Build-Depends: zlib, libpng, tiff, libxml2, jsoncpp, glew, freetype, expat, hdf5, libjpeg-turbo, proj4, lz4, libtheora, atlmfc (windows)
Feature: openvr Feature: openvr
Description: OpenVR functionality for VTK Description: OpenVR functionality for VTK

View File

@ -115,6 +115,12 @@ if(VTK_WITH_ALL_MODULES)
) )
endif() endif()
if(NOT VCPKG_CMAKE_SYSTEM_NAME)
set(Module_vtkGUISupportMFC ON)
else()
set(Module_vtkGUISupportMFC OFF)
endif()
# ============================================================================= # =============================================================================
# Configure & Install # Configure & Install
if(${VCPKG_LIBRARY_LINKAGE} MATCHES "static") if(${VCPKG_LIBRARY_LINKAGE} MATCHES "static")
@ -154,6 +160,7 @@ vcpkg_configure_cmake(
-DVTK_INSTALL_PACKAGE_DIR=share/vtk -DVTK_INSTALL_PACKAGE_DIR=share/vtk
-DVTK_INSTALL_RUNTIME_DIR=bin -DVTK_INSTALL_RUNTIME_DIR=bin
-DVTK_FORBID_DOWNLOADS=ON -DVTK_FORBID_DOWNLOADS=ON
-DModule_vtkGUISupportMFC=${Module_vtkGUISupportMFC}
${ADDITIONAL_OPTIONS} ${ADDITIONAL_OPTIONS}
) )