vcpkg/ports/openvdb/fix-Target-notfound.patch
JonLiu1993 867df2ac44
[OpenVDB] Update to V9.0.0 (#23623)
* [OpenVDB] Update to V9.0.0

* update version

* add license

* update version
2022-03-21 14:07:02 -07:00

20 lines
865 B
Diff

diff --git a/openvdb/openvdb/cmd/CMakeLists.txt b/openvdb/openvdb/cmd/CMakeLists.txt
index c173566..53f8575 100644
--- a/openvdb/openvdb/cmd/CMakeLists.txt
+++ b/openvdb/openvdb/cmd/CMakeLists.txt
@@ -137,9 +137,11 @@ if(OPENVDB_BUILD_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(OPENEXR_USE_STATIC_LIBS OR (${ILMBASE_LIB_TYPE} STREQUAL STATIC_LIBRARY))
- target_compile_definitions(vdb_render PUBLIC -DOPENVDB_OPENEXR_STATICLIB)
+ if(USE_IMATH_HALF)
+ get_target_property(ILMBASE_LIB_TYPE IlmBase::Half TYPE)
+ if(OPENEXR_USE_STATIC_LIBS OR (${ILMBASE_LIB_TYPE} STREQUAL STATIC_LIBRARY))
+ target_compile_definitions(vdb_render PUBLIC -DOPENVDB_OPENEXR_STATICLIB)
+ endif()
endif()
endif()