[realsense2] fix single config builds (#42449)

This commit is contained in:
Alexander Neumann 2024-12-16 19:10:14 +01:00 committed by GitHub
parent 3c24aa3516
commit e534a9d589
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 6 deletions

View File

@ -50,10 +50,11 @@ vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/realsense2)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/realsense2/realsense2Targets.cmake" "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel" "\${_IMPORT_PREFIX}")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/realsense2/realsense2Targets.cmake" "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg" "\${_IMPORT_PREFIX}")
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/common/fw")
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/common/fw/fw.res" DESTINATION "${CURRENT_PACKAGES_DIR}/common/fw")
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/realsense2/realsense2Targets.cmake" "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg" "\${_IMPORT_PREFIX}")
endif()
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/common/fw")
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/common/fw/fw.res" DESTINATION "${CURRENT_PACKAGES_DIR}/common/fw")
endif()
vcpkg_copy_pdbs()

View File

@ -1,7 +1,7 @@
{
"name": "realsense2",
"version": "2.56.2",
"port-version": 1,
"port-version": 2,
"description": "Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 series and the SR300).",
"homepage": "https://github.com/IntelRealSense/librealsense",
"license": "Apache-2.0",

View File

@ -7886,7 +7886,7 @@
},
"realsense2": {
"baseline": "2.56.2",
"port-version": 1
"port-version": 2
},
"recast": {
"baseline": "deprecated",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "16b54def1f75d71eb6b30ecc5b33cdcda10ea9e6",
"version": "2.56.2",
"port-version": 2
},
{
"git-tree": "3f099d34f5d5bf7b0354e667018c0caae7966229",
"version": "2.56.2",