Windows: Fix OpenVDB errors when compiling with clang-cl

Pull Request: https://projects.blender.org/blender/blender/pulls/126236
This commit is contained in:
Anthony Roberts
2024-08-12 16:08:00 +01:00
committed by Gitea
parent c4e90eddcb
commit 07d0ecb9d6
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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
+5
View File
@@ -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)