Merge pull request #2220 from UnaNancyOwen/fix_pcl

Change OpenNI2 to feature option
This commit is contained in:
Robert Schumacher 2017-11-17 17:23:29 -08:00 committed by GitHub
commit fcfa1e40da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,11 @@
Source: pcl
Version: 1.8.1-5
Version: 1.8.1-6
Description: Point Cloud Library (PCL) is open source library for 2D/3D image and point cloud processing.
Build-Depends: boost, eigen3, flann, qhull, vtk, openni2
Build-Depends: boost, eigen3, flann, qhull, vtk
Feature: openni2
Description: OpenNI2 support for PCL
Build-Depends: openni2
Feature: qt
Description: Qt support for PCL

View File

@ -20,6 +20,11 @@ vcpkg_apply_patches(
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PCL_SHARED_LIBS)
set(WITH_OPENNI2 OFF)
if("openni2" IN_LIST FEATURES)
set(WITH_OPENNI2 ON)
endif()
set(WITH_QT OFF)
if("qt" IN_LIST FEATURES)
set(WITH_QT ON)
@ -44,7 +49,7 @@ vcpkg_configure_cmake(
# WITH
-DWITH_CUDA=OFF
-DWITH_LIBUSB=OFF
-DWITH_OPENNI2=ON
-DWITH_OPENNI2=${WITH_OPENNI2}
-DWITH_PCAP=${WITH_PCAP}
-DWITH_PNG=OFF
-DWITH_QHULL=ON