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 238b946
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}/@[email protected])
if(NOT TARGET fmt::fmt)
include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
endif()

check_required_components(fmt)

0 comments on commit 238b946

Please sign in to comment.