From cf9e157bd7482a794c1528a88f7bd10ac4d58a09 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Mon, 27 Mar 2023 15:39:44 +0200 Subject: [PATCH] Fix: Compiling Shader Builder. IMath is required for building with vulkan. This patch adds openexr dependencies to shader_builder for now. Imath is a dependency of openexr. Currently there is a difference between windows and other OS's in which variable the library is stored. Might be because imath isn't a direct dependecy. As this is a compilation error I did the quickest solution and check with platform module what would be the best solution. --- source/blender/gpu/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index a7c97f3db8c..aefa41ccdc5 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -800,6 +800,8 @@ if(WITH_GPU_BUILDTIME_SHADER_BUILDER) bf_blenlib bf_intern_ghost ${PLATFORM_LINKLIBS} + ${IMATH_LIBRARIES} + ${IMATH_LIBRARY} ) target_include_directories(shader_builder PRIVATE ${INC} ${CMAKE_CURRENT_BINARY_DIR}) -- 2.30.2