Vulkan: Fix Compilation Issue on Windows.

Vulkan uses IMath. IMath on windows requires an option to indicate
it is used as dll file. This option wasn't set for the GPU module.

Thanks to Kazashi Yoshioka for mentioning this.

Pull Request: https://projects.blender.org/blender/blender/pulls/106932
This commit is contained in:
Jeroen Bakker
2023-04-14 10:17:35 +02:00
parent 71c4b7f1d0
commit 86b39e0aac

View File

@@ -337,7 +337,13 @@ if(WITH_VULKAN_BACKEND)
${MOLTENVK_LIBRARIES}
extern_vulkan_memory_allocator
)
add_definitions(-DWITH_VULKAN_BACKEND)
if(WIN32)
if(EXISTS ${LIBDIR}/imath/bin/imath.dll)
add_definitions(-DIMATH_DLL)
endif()
endif()
endif()
if(WITH_VULKAN_GUARDEDALLOC)