From 64b2ec8c75f5872e45f903c99f3b5f5fe6882146 Mon Sep 17 00:00:00 2001 From: Gilad S Date: Thu, 9 Jan 2025 00:31:29 +0200 Subject: [PATCH] fix: Vulkan shader gen binary path when not cross compiling --- ggml/src/ggml-vulkan/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml-vulkan/CMakeLists.txt b/ggml/src/ggml-vulkan/CMakeLists.txt index c0ddaac827f86..4d4039cc75e6d 100644 --- a/ggml/src/ggml-vulkan/CMakeLists.txt +++ b/ggml/src/ggml-vulkan/CMakeLists.txt @@ -83,7 +83,7 @@ if (Vulkan_FOUND) file(GLOB _ggml_vk_shader_deps "${_ggml_vk_input_dir}/*.comp") - if (NOT CMAKE_CROSSCOMPILING) + if (CMAKE_SYSTEM_NAME STREQUAL CMAKE_HOST_SYSTEM_NAME) set(_ggml_vk_genshaders_cmd "$/${_ggml_vk_genshaders_cmd}") endif ()