[pcl] use supports expressions (#30928)

This commit is contained in:
autoantwort 2023-04-18 00:40:33 +02:00 committed by GitHub
parent 2507e0e707
commit 8694c9368d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 10 deletions

View File

@ -20,14 +20,6 @@ vcpkg_from_github(
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PCL_SHARED_LIBS)
if ("cuda" IN_LIST FEATURES AND VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
message(FATAL_ERROR "Feature cuda only supports 64-bit compilation.")
endif()
if ("tools" IN_LIST FEATURES AND VCPKG_LIBRARY_LINKAGE STREQUAL static)
message(FATAL_ERROR "Feature tools only supports dynamic build")
endif()
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
openni2 WITH_OPENNI2

View File

@ -1,7 +1,7 @@
{
"name": "pcl",
"version": "1.13.0",
"port-version": 1,
"port-version": 2,
"description": "Point Cloud Library (PCL) is open source library for 2D/3D image and point cloud processing.",
"homepage": "https://github.com/PointCloudLibrary/pcl",
"license": "BSD-3-Clause",
@ -55,6 +55,7 @@
},
"cuda": {
"description": "CUDA support for PCL",
"supports": "x64",
"dependencies": [
"cuda"
]
@ -132,6 +133,7 @@
},
"tools": {
"description": "Build PCL utilities",
"supports": "!static",
"dependencies": [
"boost-accumulators"
]

View File

@ -6054,7 +6054,7 @@
},
"pcl": {
"baseline": "1.13.0",
"port-version": 1
"port-version": 2
},
"pcre": {
"baseline": "8.45",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0c53a841b49d311f52e047bc61455479475c446e",
"version": "1.13.0",
"port-version": 2
},
{
"git-tree": "b992407a0319c7dc434236acb567e629367d8eff",
"version": "1.13.0",