aboutsummaryrefslogtreecommitdiff
path: root/support/cmake/fmt-config.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'support/cmake/fmt-config.cmake.in')
-rw-r--r--support/cmake/fmt-config.cmake.in5
1 files changed, 4 insertions, 1 deletions
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)