Skip to content

Fix scene index cmake build#2631

Merged
cpichard merged 2 commits into
Autodesk:masterfrom
cpichard:fix_scene_index_build
May 11, 2026
Merged

Fix scene index cmake build#2631
cpichard merged 2 commits into
Autodesk:masterfrom
cpichard:fix_scene_index_build

Conversation

@cpichard
Copy link
Copy Markdown
Collaborator

@cpichard cpichard commented May 6, 2026

Changes proposed in this pull request

  • Add missing compile definition when building scene index as shared libraries with cmake

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to fix CMake builds when scene_index is built as a shared plugin by ensuring ENABLE_SCENE_INDEX is defined for the relevant shared-library targets.

Changes:

  • Add ENABLE_SCENE_INDEX=1 compile definition to the sceneIndexArnold shared library target.
  • Add ENABLE_SCENE_INDEX=1 compile definition to the usdImagingArnold shared library target when BUILD_SCENE_INDEX_PLUGIN is enabled (currently redundant with an existing definition in the same file).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
plugins/usd_imaging/CMakeLists.txt Adds an ENABLE_SCENE_INDEX compile definition for the shared plugin (but duplicates an existing block).
plugins/scene_index/CMakeLists.txt Adds missing ENABLE_SCENE_INDEX compile definition for the sceneIndexArnold shared plugin target.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plugins/usd_imaging/CMakeLists.txt Outdated
Comment on lines +48 to +50
if (BUILD_SCENE_INDEX_PLUGIN)
target_compile_definitions(usdImagingArnold PUBLIC ENABLE_SCENE_INDEX=1)
endif()
Comment thread plugins/scene_index/CMakeLists.txt Outdated
if (MTOA_BUILD)
target_compile_definitions(sceneIndexArnold PRIVATE MTOA_BUILD=1)
endif()
target_compile_definitions(sceneIndexArnold PUBLIC ENABLE_SCENE_INDEX=1)
@cpichard cpichard merged commit 0a7e8f5 into Autodesk:master May 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants