aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/usd/004-fix_cmake_package.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/usd/004-fix_cmake_package.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/usd/004-fix_cmake_package.patch')
-rw-r--r--vcpkg/ports/usd/004-fix_cmake_package.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/usd/004-fix_cmake_package.patch b/vcpkg/ports/usd/004-fix_cmake_package.patch
new file mode 100644
index 0000000..ad042d1
--- /dev/null
+++ b/vcpkg/ports/usd/004-fix_cmake_package.patch
@@ -0,0 +1,48 @@
+diff --git a/pxr/CMakeLists.txt b/pxr/CMakeLists.txt
+index b735c86ea..d30354114 100644
+--- a/pxr/CMakeLists.txt
++++ b/pxr/CMakeLists.txt
+@@ -23,7 +23,8 @@ endif()
+
+ pxr_core_epilogue()
+
+-export(PACKAGE pxr)
++include(GNUInstallDirs)
++include(CMakePackageConfigHelpers)
+
+ # XXX:
+ # Libraries specify the TBB::tbb target to link against TBB. This target
+@@ -59,11 +60,28 @@ foreach(property IN ITEMS
+ endif()
+ endforeach()
+
+-configure_file(pxrConfig.cmake.in
+- "${PROJECT_BINARY_DIR}/pxrConfig.cmake" @ONLY)
+-install(FILES
++configure_file(
++ "pxrConfig.cmake.in"
+ "${PROJECT_BINARY_DIR}/pxrConfig.cmake"
+- DESTINATION "${CMAKE_INSTALL_PREFIX}"
++ @ONLY
+ )
+
+-install(EXPORT pxrTargets DESTINATION "cmake")
++write_basic_package_version_file("${PROJECT_BINARY_DIR}/pxrConfigVersion.cmake"
++ VERSION "${PXR_MAJOR_VERSION}.${PXR_MINOR_VERSION}.${PXR_PATCH_VERSION}"
++ COMPATIBILITY AnyNewerVersion
++)
++
++install(
++ FILES
++ "${PROJECT_BINARY_DIR}/pxrConfig.cmake"
++ "${PROJECT_BINARY_DIR}/pxrConfigVersion.cmake"
++
++ DESTINATION
++ "${CMAKE_INSTALL_DATADIR}/pxr"
++)
++
++install(
++ EXPORT pxrTargets
++ # NAMESPACE "pxr::"
++ DESTINATION "${CMAKE_INSTALL_DATADIR}/pxr"
++)