]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cmake: Fix ggml backend dependencies and installation (llama/11818)
authorVladimir Vuksanovic <redacted>
Thu, 27 Feb 2025 07:42:48 +0000 (08:42 +0100)
committerGeorgi Gerganov <redacted>
Sat, 8 Mar 2025 13:13:01 +0000 (15:13 +0200)
* Fix dependencies between ggml and backends

ggml backends link only to ggml-base and ggml links to all backends.

* Fix installation of ggml backends

Set up GNUInstallDirs before setting the installation directory of ggml backends

ggml/CMakeLists.txt

index 2ac18e6584137c1a9eb6cfe948c839f4b12a8790..359f98513bc00a20af151b1449c77d15b14afd9f 100644 (file)
@@ -212,6 +212,8 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
 
 find_package(Threads REQUIRED)
 
+include(GNUInstallDirs)
+
 #
 # build the library
 #
@@ -235,7 +237,6 @@ endif ()
 # install
 #
 
-include(GNUInstallDirs)
 include(CMakePackageConfigHelpers)
 
 # all public headers