Skip to content

Conversation

@tylerm-nv
Copy link
Contributor

@tylerm-nv tylerm-nv commented Dec 3, 2025

Description of Change(s)

Ensures that TARGET_PDB_FILE is only used on shared builds since linker artifacts are required, and static builds only produce compiler artifacts. The monolithic build is missing this guard.

Fixes Issue(s)

Fixes cmake error during static monolithic builds on Windows.

python3 ./build_scripts/build_usd.py --build-monolithic --no-imaging --no-python --no-tests --cmake-build-args=-DBUILD_SHARED_LIBS=OFF {install_dir}

Error fixed by change:

CMake Error:
  Error evaluating generator expression:
    $<TARGET_PDB_FILE:usd_m>
  TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

Checklist

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-11685

(This is an automated message. See here for more information.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants