Open
Description
Environment
Rocky Linux 9.4
master, v11.0.0, v12.0.0:
GCC: 11.4.1
cmake: 3.27.8
C++ standard: c++ 17
Describe the bug
I noticed that the CMake configuration for vdb_tool
uses OpenEXR::IlmImf
as one of the imported targets. This target was previously part of OpenEXR but is no longer available in recent versions, as the project has consolidated its libraries. The correct target to use should now be OpenEXR::OpenEXR
.
You might want to update the CMakeLists.txt
as follows to ensure compatibility with newer OpenEXR versions:
openvdb/openvdb_cmd/vdb_tool/CMakeLists.txt
Line 111 in 7d44132
if(OPENVDB_TOOL_USE_EXR)
target_compile_definitions(vdb_tool_common INTERFACE "VDB_TOOL_USE_EXR")
find_package(OpenEXR REQUIRED)
target_link_libraries(vdb_tool_common INTERFACE OpenEXR::OpenEXR)
endif()
Thanks in advance,
Cheers