Skip to content

Commit

Permalink
Skip cmake targets inclusion if fmt::fmt already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kieselnb committed May 27, 2022
1 parent ce246aa commit 31697cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion support/cmake/fmt-config.cmake.in
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 31697cb

Please sign in to comment.