Skip to content
Closed
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
10 changes: 6 additions & 4 deletions pxr/pxrConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ set(PXR_MINOR_VERSION "@PXR_MINOR_VERSION@")
set(PXR_PATCH_VERSION "@PXR_PATCH_VERSION@")
set(PXR_VERSION "@PXR_VERSION@")

include(CMakeFindDependencyMacro)

# If Python support was enabled for this USD build, find the import
# targets by invoking the appropriate FindPython module. Use the same
# LIBRARY and INCLUDE_DIR settings from the original build if they
Expand All @@ -41,9 +43,9 @@ if(@PXR_ENABLE_PYTHON_SUPPORT@)
endif()

if (NOT DEFINED Python3_VERSION)
find_package(Python3 "@Python3_VERSION@" EXACT COMPONENTS Development REQUIRED)
find_dependency(Python3 "@Python3_VERSION@" EXACT COMPONENTS Development)
else()
find_package(Python3 COMPONENTS Development REQUIRED)
find_dependency(Python3 COMPONENTS Development)
endif()
endif()

Expand All @@ -57,7 +59,7 @@ if(@PXR_ENABLE_MATERIALX_SUPPORT@)
set(MaterialX_DIR [[@MaterialX_DIR@]])
endif()
endif()
find_package(MaterialX REQUIRED)
find_dependency(MaterialX)
endif()

# Similar to MaterialX above, we are using Imath's cmake package config, so set
Expand All @@ -71,7 +73,7 @@ if(@Imath_FOUND@)
set(Imath_DIR [[@Imath_DIR@]])
endif()
endif()
find_package(Imath REQUIRED)
find_dependency(Imath)
endif()

include("${PXR_CMAKE_DIR}/cmake/pxrTargets.cmake")
Expand Down