Skip cmake targets inclusion if fmt::fmt already exists

This commit is contained in:
Nick Kiesel 2022-05-26 21:11:17 -05:00
parent ce246aaf74
commit afdc039c93

View File

@ -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)