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) find_package(Threads REQUIRED)
set(SPDLOG_FMT_EXTERNAL @SPDLOG_FMT_EXTERNAL@) set(SPDLOG_FMT_EXTERNAL @SPDLOG_FMT_EXTERNAL@)
set(SPDLOG_FMT_EXTERNAL_HO @SPDLOG_FMT_EXTERNAL_HO@)
set(config_targets_file @config_targets_file@) set(config_targets_file @config_targets_file@)
if(SPDLOG_FMT_EXTERNAL) if(SPDLOG_FMT_EXTERNAL OR SPDLOG_FMT_EXTERNAL_HO)
include(CMakeFindDependencyMacro) include(CMakeFindDependencyMacro)
find_dependency(fmt CONFIG) find_dependency(fmt CONFIG)
endif() endif()