kompute : enable kp_logger and make it static (#8)

This commit is contained in:
cebtenzzre 2023-10-16 16:51:41 -04:00
parent cc05a602d6
commit 21841d3163
2 changed files with 2 additions and 1 deletions

View File

@ -463,6 +463,7 @@ if (LLAMA_KOMPUTE)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/kompute/CMakeLists.txt")
message(STATUS "Kompute found")
set(KOMPUTE_OPT_LOG_LEVEL Error CACHE STRING "Kompute log level")
add_subdirectory(kompute)
# Compile our shaders

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)
set(LOGGER_SOURCES Logger.cpp)
add_library(kp_logger ${LOGGER_SOURCES})
add_library(kp_logger STATIC ${LOGGER_SOURCES})
# Define log levels in code
add_compile_definitions(KOMPUTE_LOG_LEVEL_TRACE=0)