Windows: Fix OpenVDB errors when compiling with clang-cl
Pull Request: https://projects.blender.org/blender/blender/pulls/126236
This commit is contained in:
Vendored
+5
@@ -101,6 +101,11 @@ if(WITH_OPENVDB)
|
||||
# for details.
|
||||
string(APPEND CMAKE_CXX_FLAGS " /wd4251")
|
||||
endif()
|
||||
|
||||
# This works around the issue described in #120317 and https://github.com/AcademySoftwareFoundation/openvdb/pull/1786
|
||||
if(MSVC_CLANG)
|
||||
set_source_files_properties(${MANTA_PP}/fileio/iovdb.cpp PROPERTIES COMPILE_FLAGS -fno-delayed-template-parsing)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(SRC
|
||||
|
||||
@@ -132,6 +132,11 @@ if(WITH_OPENVDB)
|
||||
list(APPEND LIB
|
||||
${OPENVDB_LIBRARIES}
|
||||
)
|
||||
|
||||
# This works around the issue described in #120317 and https://github.com/AcademySoftwareFoundation/openvdb/pull/1786
|
||||
if(MSVC_CLANG)
|
||||
set_source_files_properties(image_vdb.cpp PROPERTIES COMPILE_FLAGS -fno-delayed-template-parsing)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(WITH_ALEMBIC)
|
||||
|
||||
Reference in New Issue
Block a user