Skip cmake targets inclusion if fmt::fmt already exists (#2907)

This commit is contained in:
Nick Kiesel 2022-05-27 10:35:40 -05:00 committed by GitHub
parent ce246aaf74
commit 90b68783ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)