Clean up a couple of CMake includes (#4710)

CMakeParseArguments is a no-op since CMake 3.5 and the
minimum version {fmt} supports is 3.8:
    https://cmake.org/cmake/help/latest/module/CMakeParseArguments.html

GNUInstallDirs is already unconditionally included
earlier in the file.
This commit is contained in:
Victor Chernyakin 2026-03-11 06:32:04 -07:00 committed by GitHub
parent 2b4eb7df47
commit 245e4d9723
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -326,8 +326,6 @@ if (FMT_SAFE_DURATION_CAST)
target_compile_definitions(fmt PUBLIC FMT_SAFE_DURATION_CAST)
endif ()
include(CMakeParseArguments)
# Adds a library compiled with C++20 module support.
#
# Usage:
@ -549,7 +547,6 @@ function (add_doc_target)
--site-dir ${CMAKE_CURRENT_BINARY_DIR}/doc-html --no-directory-urls
SOURCES ${sources})
include(GNUInstallDirs)
install(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc-html/
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt