Skip to content

Commit

Permalink
Merge pull request #3606 from Autodesk/gz-adsk/EMSUSD-1016/exposing-m…
Browse files Browse the repository at this point in the history
…ayausdapi-lib-through-plugin

EMSUSD-1016 - Link against mayaUsdAPI to preload it for other plugins
  • Loading branch information
seando-adsk authored Feb 12, 2024
2 parents 4e84b81 + 2c12ac5 commit d68d172
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugin/adsk/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ else()
)
endif()

# The mayaUsd plugin does need the mayaUsdAPI library. However, other plugins that
# depend on it have no way of locating it currently at runtime, so it has to be
# preloaded.
if(IS_MACOSX OR IS_LINUX)
target_link_libraries(${TARGET_NAME}
PRIVATE
mayaUsdAPI
)
endif()

# -----------------------------------------------------------------------------
# properties
# -----------------------------------------------------------------------------
Expand Down

0 comments on commit d68d172

Please sign in to comment.