Skip to content

pxr/usd/sdr has undeclared dependency on pxr/usd/usd #3972

@nvmkuruc

Description

@nvmkuruc

When compiling sdr on Windows using the NMake generator, this object...

[ 37%] Building CXX object pxr/usd/sdr/CMakeFiles/_sdr.dir/wrapShaderMetadataHelpers.cpp.obj

... yielded the following error.

fatal error C1083: Cannot open include file: 'pxr/usd/usd/pyConversions.h': No such file or directory

There is an include from pxr/usd/usd

#include "pxr/usd/usd/pyConversions.h"

But usd is not listed as a dependency in CMakeLists.txt.

pxr_library(sdr
LIBRARIES
arch
plug
trace
tf
vt
work
ar
sdf

This hasn't been observed in other generators. The workaround is to use other generators or build without python.

This was observed while building v25.11, but the code in question still seems to be present in dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions