Skip to content

Commit

Permalink
Assign scope to OpenImageIO linking
Browse files Browse the repository at this point in the history
This changelist assigns a required scope keyword to the linking step for OpenImageIO in MaterialXRender.

CMake requires scope keywords to be used in all linking steps after they are used in one, so this change is needed to match the new behavior of mx_add_library introduced in AcademySoftwareFoundation#1944.
  • Loading branch information
jstone-lucasfilm committed Aug 14, 2024
1 parent edcee68 commit 462aab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/MaterialXRender/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ if(MATERIALX_BUILD_OIIO)
set(OPENIMAGEIO_ROOT_DIR ${MATERIALX_OIIO_DIR})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/External/OpenImageIO")
find_package(OpenImageIO CONFIG REQUIRED)
target_link_libraries(${TARGET_NAME} OpenImageIO::OpenImageIO OpenImageIO::OpenImageIO_Util)
target_link_libraries(${TARGET_NAME} PRIVATE OpenImageIO::OpenImageIO OpenImageIO::OpenImageIO_Util)
endif()

0 comments on commit 462aab6

Please sign in to comment.