From 24a5dcca6bfcb10ee39ded4ad11f380c4f16d604 Mon Sep 17 00:00:00 2001 From: Leanid Chaika Date: Sat, 16 Aug 2025 12:10:21 +0300 Subject: [PATCH] target_add_dependencies not exist in cmake fix it target_add_dependencies not exist in cmake fix it with add_dependencies see: https://cmake.org/cmake/help/latest/command/add_dependencies.html --- .../02_Graphics_pipeline_basics/01_Shader_modules.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/03_Drawing_a_triangle/02_Graphics_pipeline_basics/01_Shader_modules.adoc b/en/03_Drawing_a_triangle/02_Graphics_pipeline_basics/01_Shader_modules.adoc index 595e3f8a..27ea2de2 100644 --- a/en/03_Drawing_a_triangle/02_Graphics_pipeline_basics/01_Shader_modules.adoc +++ b/en/03_Drawing_a_triangle/02_Graphics_pipeline_basics/01_Shader_modules.adoc @@ -350,7 +350,7 @@ Then you can add the Slang build step to your target like this: [,cmake] ---- add_slang_shader_target( foo SOURCES ${SHADER_SLANG_SOURCES}) -target_add_dependencies(bar PUBLIC foo) +add_dependencies(bar foo) ---- == Loading a shader