mirror of
https://github.com/fmtlib/fmt.git
synced 2026-04-30 19:09:22 +08:00
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:
parent
2b4eb7df47
commit
245e4d9723
@ -326,8 +326,6 @@ if (FMT_SAFE_DURATION_CAST)
|
|||||||
target_compile_definitions(fmt PUBLIC FMT_SAFE_DURATION_CAST)
|
target_compile_definitions(fmt PUBLIC FMT_SAFE_DURATION_CAST)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
include(CMakeParseArguments)
|
|
||||||
|
|
||||||
# Adds a library compiled with C++20 module support.
|
# Adds a library compiled with C++20 module support.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
@ -549,7 +547,6 @@ function (add_doc_target)
|
|||||||
--site-dir ${CMAKE_CURRENT_BINARY_DIR}/doc-html --no-directory-urls
|
--site-dir ${CMAKE_CURRENT_BINARY_DIR}/doc-html --no-directory-urls
|
||||||
SOURCES ${sources})
|
SOURCES ${sources})
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
|
||||||
install(
|
install(
|
||||||
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc-html/
|
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc-html/
|
||||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user