Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 14 additions & 2 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
usd: ["v25.05"]
usd: ["v24.08", "v25.05"]
python: ["3.10", "3.12"]

name: "USD-${{ matrix.usd }}-py${{ matrix.python }}"
Expand All @@ -42,11 +42,23 @@ jobs:
mkdir -p ${{github.workspace}}/build
mkdir -p ${{runner.temp}}/USD

- name: Install USD
- name: Download USD
working-directory: ${{runner.temp}}/USD
run: |
git clone https://github.com/PixarAnimationStudios/OpenUSD.git \
--depth 1 --branch ${{ matrix.usd }} ./src

- name: Apply patch for USD v24.08
if: matrix.usd == 'v24.08'
working-directory: ${{runner.temp}}/USD
run: |
sed -i '/BOOST_URL/ s|boostorg.jfrog.io.*/release|sourceforge.net/projects/boost/files/boost|' src/build_scripts/build_usd.py
sed -i '/BOOST_URL/ s|source/boost|boost|' src/build_scripts/build_usd.py
sed -i '/BOOST_URL/ s|\.zip"|.zip/download"|' src/build_scripts/build_usd.py

- name: Install USD
working-directory: ${{runner.temp}}/USD
run: |
python ./src/build_scripts/build_usd.py . \
--no-tests \
--no-examples \
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
usd: ["v25.05"]
usd: ["v24.08", "v25.05"]
python: ["3.10", "3.12"]

name: "USD-${{ matrix.usd }}-py${{ matrix.python }}"
Expand All @@ -41,15 +41,29 @@ jobs:
cmake -E make_directory ${{github.workspace}}\build
cmake -E make_directory ${{runner.temp}}\USD

- name: Download USD
working-directory: ${{runner.temp}}/USD
shell: cmd
run: |
git clone https://github.com/PixarAnimationStudios/OpenUSD.git ^
--depth 1 --branch ${{ matrix.usd }} ./src

- name: Apply patch for USD v24.08
if: matrix.usd == 'v24.08'
working-directory: ${{runner.temp}}/USD
shell: bash
run: |
sed -i '/BOOST_URL/ s|boostorg.jfrog.io.*/release|sourceforge.net/projects/boost/files/boost|' src/build_scripts/build_usd.py
sed -i '/BOOST_URL/ s|source/boost|boost|' src/build_scripts/build_usd.py
sed -i '/BOOST_URL/ s|\.zip"|.zip/download"|' src/build_scripts/build_usd.py

- name: Install USD
working-directory: ${{runner.temp}}/USD
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
set VCPKG_TARGET_TRIPLET=x64-windows
set CMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALLATION_ROOT%/scripts/buildsystems/vcpkg.cmake
git clone https://github.com/PixarAnimationStudios/OpenUSD.git ^
--depth 1 --branch ${{ matrix.usd }} ./src
python ./src/build_scripts/build_usd.py . ^
--generator "Visual Studio 16 2019" ^
--no-tests ^
Expand Down
2 changes: 0 additions & 2 deletions cmake/modules/FindUSD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ find_package_handle_standard_args(
plug_LIBRARY
arch_LIBRARY
vt_LIBRARY
boost_LIBRARY
python_LIBRARY
VERSION_VAR
USD_VERSION
)
Expand Down
7 changes: 7 additions & 0 deletions doc/sphinx/release/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Release Notes
*************

.. release:: Upcoming

.. change:: fixed

Fixed CMake module to detect USD without requiring `usd::boost` or `usd::python`,
maintaining compatibility with OpenUSD v24.08.

.. release:: 0.8.1
:date: 2025-05-13

Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ target_link_libraries(unf

# Transitive Pixar libraries depend on vendorized Boost.Python
# (Required due to manual CMake module used to locate USD)
if (BUILD_PYTHON_BINDINGS)
if (BUILD_PYTHON_BINDINGS AND USD_USE_INTERNAL_BOOST_PYTHON)
target_link_libraries(unf PUBLIC usd::boost usd::python)
endif()

Expand Down