Skip to content

Commit

Permalink
Fix static openexr cmake bug in vdb render
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Bailey <[email protected]>
  • Loading branch information
danrbailey committed Oct 7, 2022
1 parent d53a283 commit 667c6d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openvdb_cmd/vdb_render/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ target_link_libraries(vdb_render

if(WIN32)
# @note OPENVDB_OPENEXR_STATICLIB is old functionality and should be removed
get_target_property(ILMBASE_LIB_TYPE IlmBase::Half TYPE)
if (TARGET Imath::Imath)
get_target_property(ILMBASE_LIB_TYPE Imath::Imath TYPE)
else()
get_target_property(ILMBASE_LIB_TYPE IlmBase::Half TYPE)
endif()
if(OPENEXR_USE_STATIC_LIBS OR (${ILMBASE_LIB_TYPE} STREQUAL STATIC_LIBRARY))
target_compile_definitions(vdb_render PUBLIC -DOPENVDB_OPENEXR_STATICLIB)
endif()
Expand Down

0 comments on commit 667c6d7

Please sign in to comment.