Merge pull request #2300 from adamcalhoon/fix-fmt-external-ho-deps

When built with SPDLOG_FMT_EXTERNAL_HO consumers of the spdlog target…
This commit is contained in:
Gabi Melman 2022-03-06 22:03:47 +02:00 committed by GitHub
commit 7f8a61e79d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,9 +6,10 @@
find_package(Threads REQUIRED)
set(SPDLOG_FMT_EXTERNAL @SPDLOG_FMT_EXTERNAL@)
set(SPDLOG_FMT_EXTERNAL_HO @SPDLOG_FMT_EXTERNAL_HO@)
set(config_targets_file @config_targets_file@)
if(SPDLOG_FMT_EXTERNAL)
if(SPDLOG_FMT_EXTERNAL OR SPDLOG_FMT_EXTERNAL_HO)
include(CMakeFindDependencyMacro)
find_dependency(fmt CONFIG)
endif()
@ -16,4 +17,4 @@ endif()
include("${CMAKE_CURRENT_LIST_DIR}/${config_targets_file}")
check_required_components(spdlog)
check_required_components(spdlog)