Fix spdlogConfig.cmake.in

This commit is contained in:
gabime 2024-01-13 15:55:05 +02:00
parent 26b6461b24
commit 83d274eb55

View File

@ -7,10 +7,12 @@ include(CMakeFindDependencyMacro)
find_package(Threads REQUIRED)
set(SPDLOG_FMT_EXTERNAL @SPDLOG_FMT_EXTERNAL@)
set(config_targets_file @config_targets_file@)
find_dependency(fmt CONFIG)
set(SPDLOG_USE_STD_FORMAT @SPDLOG_USE_STD_FORMAT@)
if(NOT SPDLOG_USE_STD_FORMAT)
find_dependency(fmt CONFIG)
endif()
set(config_targets_file @config_targets_file@)
include("${CMAKE_CURRENT_LIST_DIR}/${config_targets_file}")
check_required_components(spdlog)