Renamed logger target

Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
This commit is contained in:
Fabian Sauter 2022-05-20 16:23:24 +02:00
parent f0773d6005
commit 3f7ca2830e
3 changed files with 7 additions and 7 deletions

View file

@ -82,12 +82,12 @@ endif()
if(KOMPUTE_OPT_ANDROID_BUILD)
target_link_libraries(kompute PUBLIC kompute_vk_ndk_wrapper
android
PRIVATE logger
PRIVATE kp_logger
fmt::fmt)
else()
target_link_libraries(kompute PUBLIC Vulkan::Vulkan
PRIVATE fmt::fmt
logger)
kp_logger)
endif()
if(KOMPUTE_OPT_USE_BUILD_IN_VULKAN_HEADER)

View file

@ -36,10 +36,10 @@ install(DIRECTORY kompute DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
# Logger
#####################################################
target_include_directories(logger PUBLIC $<INSTALL_INTERFACE:include>
target_include_directories(kp_logger PUBLIC $<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
target_sources(logger PRIVATE
target_sources(kp_logger PRIVATE
# Header files (useful in IDEs)
kompute/logger/Logger.hpp
)

View file

@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.16)
set(LOGGER_SOURCES Logger.cpp)
add_library(logger ${LOGGER_SOURCES})
target_link_libraries(logger PUBLIC spdlog::spdlog)
add_library(kp_logger ${LOGGER_SOURCES})
target_link_libraries(kp_logger PUBLIC spdlog::spdlog)
if(${KOMPUTE_OPT_LOG_LEVEL} STREQUAL "Trace")
set (KOMPUTE_OPT_LOG_LEVEL TRACE)
@ -34,4 +34,4 @@ else()
message(STATUS "Setting KOMPUTE_OPT_LOG_LEVEL to according to build type")
endif()
target_compile_definitions(logger INTERFACE SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_${KOMPUTE_OPT_LOG_LEVEL})
target_compile_definitions(kp_logger INTERFACE SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_${KOMPUTE_OPT_LOG_LEVEL})