From 94483d42603f699fb90cb4545dce0c65b4d3aa75 Mon Sep 17 00:00:00 2001 From: 65a <65a@65a.invalid> Date: Sun, 14 Jul 2024 12:49:29 -0700 Subject: [PATCH] ggml: Install all public headers regardless of build settings --- ggml/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ggml/CMakeLists.txt b/ggml/CMakeLists.txt index 649ac3dcc..be22a7460 100644 --- a/ggml/CMakeLists.txt +++ b/ggml/CMakeLists.txt @@ -194,13 +194,19 @@ endif () include(GNUInstallDirs) include(CMakePackageConfigHelpers) +# all public headers set(GGML_PUBLIC_HEADERS include/ggml.h include/ggml-alloc.h include/ggml-backend.h - "${GGML_HEADERS_CUDA}" - "${GGML_HEADERS_METAL}" - "${GGML_HEADERS_EXTRA}") + include/ggml-blas.h + include/ggml-cuda.h + include/ggml.h + include/ggml-kompute.h + include/ggml-metal.h + include/ggml-rpc.h + include/ggml-sycl.h + include/ggml-vulkan.h) set_target_properties(ggml PROPERTIES PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}") #if (GGML_METAL)