diff --git a/support/cmake/fmt-config.cmake.in b/support/cmake/fmt-config.cmake.in index 71e30286..bc1684f2 100644 --- a/support/cmake/fmt-config.cmake.in +++ b/support/cmake/fmt-config.cmake.in @@ -1,4 +1,7 @@ @PACKAGE_INIT@ -include(${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake) +if (NOT TARGET fmt::fmt) + include(${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake) +endif () + check_required_components(fmt)