diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/usd/010-cmake_export_plugin_as_modules.patch | |
Diffstat (limited to 'vcpkg/ports/usd/010-cmake_export_plugin_as_modules.patch')
| -rw-r--r-- | vcpkg/ports/usd/010-cmake_export_plugin_as_modules.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vcpkg/ports/usd/010-cmake_export_plugin_as_modules.patch b/vcpkg/ports/usd/010-cmake_export_plugin_as_modules.patch new file mode 100644 index 0000000..d4820ba --- /dev/null +++ b/vcpkg/ports/usd/010-cmake_export_plugin_as_modules.patch @@ -0,0 +1,34 @@ +diff --git a/cmake/macros/Private.cmake b/cmake/macros/Private.cmake
+index 79fdad022..799ce8801 100644
+--- a/cmake/macros/Private.cmake
++++ b/cmake/macros/Private.cmake
+@@ -1238,11 +1238,16 @@ function(_pxr_library NAME)
+
+ else()
+ # Building an explicitly shared library or plugin.
+- add_library(${NAME}
+- SHARED
+- ${args_CPPFILES}
+- ${args_PUBLIC_HEADERS}
+- ${args_PRIVATE_HEADERS}
++ if(isPlugin)
++ add_library(${NAME} MODULE)
++ else()
++ add_library(${NAME} SHARED)
++ endif()
++ target_sources(${NAME}
++ PRIVATE
++ ${args_CPPFILES}
++ ${args_PUBLIC_HEADERS}
++ ${args_PRIVATE_HEADERS}
+ )
+ if(PXR_PY_UNDEFINED_DYNAMIC_LOOKUP)
+ # When not explicitly linking to the python lib we need to allow
+@@ -1460,6 +1465,7 @@ function(_pxr_library NAME)
+ if(isPlugin)
+ install(
+ TARGETS ${NAME}
++ EXPORT pxrTargets
+ LIBRARY DESTINATION ${pluginInstallPrefix}
+ ARCHIVE DESTINATION ${pluginInstallPrefix}
+ RUNTIME DESTINATION ${pluginInstallPrefix}
|