Skip to content

Autodesk: Set Default Path of TBB and OpenSubdiv in pxrConfig.cmake.in #3606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pxr/pxrConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,27 @@ if (NOT DEFINED PXR_FIND_TBB_IN_CONFIG)
set(PXR_FIND_TBB_IN_CONFIG "@PXR_FIND_TBB_IN_CONFIG@")
endif()
if (PXR_FIND_TBB_IN_CONFIG)
# Set TBB_DIR to where the TBBConfig.cmake file was located.
# This can be overridden by specifying a different TBB_DIR when running cmake.
if (NOT DEFINED TBB_DIR)
if (NOT [[@TBB_DIR@]] STREQUAL "")
set(TBB_DIR [[@TBB_DIR@]])
endif()
endif()
find_dependency(TBB @TBB_VERSION@ CONFIG)
endif()

if (NOT DEFINED PXR_FIND_OPENSUBDIV_IN_CONFIG)
set(PXR_FIND_OPENSUBDIV_IN_CONFIG "@PXR_FIND_OPENSUBDIV_IN_CONFIG@")
endif()
if (PXR_FIND_OPENSUBDIV_IN_CONFIG)
# Set OpenSubdiv_DIR to where the OpenSubdivConfig.cmake file was located.
# This can be overridden by specifying a different OpenSubdiv_DIR when running cmake.
if (NOT DEFINED OpenSubdiv_DIR)
if (NOT [[@OpenSubdiv_DIR@]] STREQUAL "")
set(OpenSubdiv_DIR [[@OpenSubdiv_DIR@]])
endif()
endif()
find_dependency(OpenSubdiv @OpenSubdiv_VERSION@ CONFIG)
endif()

Expand Down