From 0a4b5eb73ea585f32c4e815da6af2fd61e059889 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Mon, 27 Mar 2023 15:53:20 +0200 Subject: [PATCH] Fix: Compiling Shader Builder. IMath is required for building with vulkan. This patch adds dependencies to shader_builder for now. 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. Pull Request: https://projects.blender.org/blender/blender/pulls/106180 --- 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})