remove dynamic deps from kompute build

should no longer have new external deps other than libvulkan

```
ubuntu@ip-172-31-1-24:~/repo/gpt4all/gpt4all-backend/build$ ldd ./libllamamodel-mainline-avxonly.so
        linux-vdso.so.1 (0x00007ffcb53bb000)
        libvulkan.so.1 => /lib/x86_64-linux-gnu/libvulkan.so.1 (0x00007f239dab5000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f239d800000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f239d719000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f239da95000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f239d400000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f239dd1d000)
```
This commit is contained in:
Aaron Miller 2023-09-05 13:42:27 -07:00 committed by Cebtenzzre
parent 48a45ea435
commit 8563fa001f

View File

@ -8,7 +8,7 @@ endif()
cmake_minimum_required(VERSION 3.20)
add_library(kompute Algorithm.cpp
add_library(kompute STATIC Algorithm.cpp
Manager.cpp
OpAlgoDispatch.cpp
OpMemoryBarrier.cpp
@ -27,7 +27,8 @@ add_library(kompute::kompute ALIAS kompute)
set_target_properties(kompute
PROPERTIES
VERSION ${${PROJECT_NAME}_VERSION}
SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR})
SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR}
POSITION_INDEPENDENT_CODE TRUE)
# Import GNU common install directory variables
include(GNUInstallDirs)
@ -56,12 +57,12 @@ if(KOMPUTE_OPT_ANDROID_BUILD)
android
kp_logger
kp_shader
fmt::fmt)
fmt::fmt-header-only)
else()
target_link_libraries(kompute PUBLIC Vulkan::Vulkan
kp_logger
kp_shader
fmt::fmt)
fmt::fmt-header-only)
endif()
if(KOMPUTE_OPT_BUILD_PYTHON)