Skip to content

Commit

Permalink
Merge pull request #2093 from nicolaspopravka/sm3
Browse files Browse the repository at this point in the history
Add Python version to pxrConfig.cmake

(Internal change: 2272855)
  • Loading branch information
pixar-oss committed Apr 21, 2023
2 parents ec4598d + 3294fc0 commit d89b836
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pxr/pxrConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ if(@PXR_ENABLE_PYTHON_SUPPORT@)
endif()
endif()

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

# If MaterialX support was enabled for this USD build, try to find the
Expand Down

0 comments on commit d89b836

Please sign in to comment.