Fix: USD Build error on windows
USD is being included before the blender headers. USD includes TBB, which includes the windows headers which define rad2 as a constant conflicting with a field with that exact name in the MetaElem dna struct. Added `-DWIN32_LEAN_AND_MEAN` to keep the windows headers from defining rad2.
This commit is contained in:
parent
daca00f187
commit
78383f7a9f
|
@ -26,7 +26,7 @@ if(UNIX AND NOT APPLE)
|
|||
add_definitions(-D_GLIBCXX_PERMIT_BACKWARD_HASH)
|
||||
endif()
|
||||
if(WIN32)
|
||||
add_definitions(-DNOMINMAX)
|
||||
add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN)
|
||||
endif()
|
||||
add_definitions(-DPXR_STATIC)
|
||||
|
||||
|
|
Loading…
Reference in New Issue