summarylogtreecommitdiffstats
path: root/0003-usd_python.patch
blob: e0537d8cb92133fb2b91b4c9e09c5ed1a5e63cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake
index 787d0f87002..659938a45b2 100644
--- a/build_files/cmake/platform/platform_unix.cmake
+++ b/build_files/cmake/platform/platform_unix.cmake
@@ -329,6 +329,10 @@ if(WITH_OPENVDB)
 endif()
 add_bundled_libraries(openvdb/lib)
 
+if(WITH_USD)
+  list(APPEND __boost_packages python)
+endif()
+
 if(WITH_NANOVDB)
   find_package_wrapper(NanoVDB)
   set_and_warn_library_found("NanoVDB" NANOVDB_FOUND WITH_NANOVDB)
diff --git a/source/blender/io/usd/CMakeLists.txt b/source/blender/io/usd/CMakeLists.txt
index ebd292782c0..02486e72461 100644
--- a/source/blender/io/usd/CMakeLists.txt
+++ b/source/blender/io/usd/CMakeLists.txt
@@ -55,6 +55,7 @@ set(INC
 set(INC_SYS
   ${USD_INCLUDE_DIRS}
   ${BOOST_INCLUDE_DIR}
+  ${PYTHON_INCLUDE_DIRS}
   ${TBB_INCLUDE_DIR}
   ${PYTHON_INCLUDE_DIR}
 )