Spaces:
Running
Running
Vladimir Vuksanovic
commited on
Commit
·
c6c2a2c
1
Parent(s):
271c7e4
cmake: Fix ggml backend dependencies and installation (llama/11818)
Browse files* 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 +2 -1
ggml/CMakeLists.txt
CHANGED
|
@@ -212,6 +212,8 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
| 212 |
|
| 213 |
find_package(Threads REQUIRED)
|
| 214 |
|
|
|
|
|
|
|
| 215 |
#
|
| 216 |
# build the library
|
| 217 |
#
|
|
@@ -235,7 +237,6 @@ endif ()
|
|
| 235 |
# install
|
| 236 |
#
|
| 237 |
|
| 238 |
-
include(GNUInstallDirs)
|
| 239 |
include(CMakePackageConfigHelpers)
|
| 240 |
|
| 241 |
# all public headers
|
|
|
|
| 212 |
|
| 213 |
find_package(Threads REQUIRED)
|
| 214 |
|
| 215 |
+
include(GNUInstallDirs)
|
| 216 |
+
|
| 217 |
#
|
| 218 |
# build the library
|
| 219 |
#
|
|
|
|
| 237 |
# install
|
| 238 |
#
|
| 239 |
|
|
|
|
| 240 |
include(CMakePackageConfigHelpers)
|
| 241 |
|
| 242 |
# all public headers
|