aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2020-03-17 05:56:05 +0800
committerGitHub <noreply@github.com>2020-03-16 14:56:05 -0700
commit1312cb19d6a44fa1eae7cb0ad4a1377983028865 (patch)
tree887b8e301745980bbe1608d14b6b2f2a5065c40b
parent5e24dfc88ac65af511c4f9c31b8a2606616406cd (diff)
downloadvcpkg-1312cb19d6a44fa1eae7cb0ad4a1377983028865.tar.gz
vcpkg-1312cb19d6a44fa1eae7cb0ad4a1377983028865.zip
[realsense2] Fix tools installation issue (#10403)
-rw-r--r--ports/realsense2/CONTROL2
-rw-r--r--ports/realsense2/portfile.cmake6
2 files changed, 5 insertions, 3 deletions
diff --git a/ports/realsense2/CONTROL b/ports/realsense2/CONTROL
index f55d97d0b..4a03ac4b3 100644
--- a/ports/realsense2/CONTROL
+++ b/ports/realsense2/CONTROL
@@ -1,5 +1,5 @@
Source: realsense2
-Version: 2.30.0
+Version: 2.30.0-1
Homepage: https://github.com/IntelRealSense/librealsense
Description: Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 series and the SR300).
diff --git a/ports/realsense2/portfile.cmake b/ports/realsense2/portfile.cmake
index 92b37a385..c2c8850ba 100644
--- a/ports/realsense2/portfile.cmake
+++ b/ports/realsense2/portfile.cmake
@@ -76,8 +76,10 @@ endif()
if(BUILD_OPENNI2_BINDINGS)
- file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/_out/rs2driver*
- DESTINATION ${CURRENT_PACKAGES_DIR}/tools/openni2/OpenNI2/Drivers)
+ file(GLOB RS2DRIVER ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/_out/rs2driver*)
+ if(RS2DRIVER)
+ file(COPY ${RS2DRIVER} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/openni2/OpenNI2/Drivers)
+ endif()
endif()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)