From a24eff04bda11f6ed7c2e7f0eb96944c4579c3f1 Mon Sep 17 00:00:00 2001 From: indigo Date: Sun, 21 Jun 2026 18:49:29 +0800 Subject: [PATCH] CMake: drop invalid OPTIONAL from Cycles runtime-deps install install(DIRECTORY) disallows OPTIONAL together with FILES_MATCHING, which broke reconfigure. The directory is always present here (produced by the CyclesBuild step), so OPTIONAL was unnecessary. Co-Authored-By: Claude Opus 4.8 --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6eec5a1..7b62e12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -402,11 +402,12 @@ if(OPENUSD_HAS_CYCLES) DESTINATION bin/usd OPTIONAL ) - # Cycles runtime deps (embree4, epoxy, imath, openvdb, OIDN, sycl, etc.) + # Cycles runtime deps (embree4, epoxy, imath, openvdb, OIDN, sycl, etc.). + # No OPTIONAL: install(DIRECTORY) disallows it with FILES_MATCHING, and the + # dir always exists here since it is produced by the CyclesBuild step. install(DIRECTORY "${CYCLES_INSTALL_DIR}/" DESTINATION bin FILES_MATCHING PATTERN "*.dll" - OPTIONAL ) # tbb12.dll (used by openvdb/embree4) lives in the precompiled lib tree, not install output install(FILES "${CYCLES_TBB12_DLL}"