cmake - make USD_SUPPORT build succeed

This commit is contained in:
Andrej730
2025-12-05 20:16:33 +05:00
parent 2213c3773d
commit d174ecf760
3 changed files with 54 additions and 6 deletions
+5
View File
@@ -30,6 +30,8 @@
#include "../ifcparse/utils.h"
// undefine opencascade Handle macro, because it conflicts with USD
// Macro source code lives in Standard_Handle.hxx.
#pragma push_macro("Handle")
#undef Handle
#include "pxr/pxr.h"
@@ -38,6 +40,9 @@
#include "pxr/usd/usdGeom/mesh.h"
#include "pxr/usd/usdShade/material.h"
// redefine Handle macro.
#pragma pop_macro("Handle")
#include <vector>
#include <string>
#include <algorithm>