mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-09 06:00:07 +00:00
Readd core.h to headers
This commit is contained in:
parent
44c3fe1ebb
commit
7a63e233d2
@ -168,8 +168,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "MSDOS")
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Get version from base.h
|
# Get version from base.h
|
||||||
file(READ include/fmt/base.h core_h)
|
file(READ include/fmt/base.h base_h)
|
||||||
if (NOT core_h MATCHES "FMT_VERSION ([0-9]+)([0-9][0-9])([0-9][0-9])")
|
if (NOT base_h MATCHES "FMT_VERSION ([0-9]+)([0-9][0-9])([0-9][0-9])")
|
||||||
message(FATAL_ERROR "Cannot get FMT_VERSION from base.h.")
|
message(FATAL_ERROR "Cannot get FMT_VERSION from base.h.")
|
||||||
endif ()
|
endif ()
|
||||||
# Use math to skip leading zeros if any.
|
# Use math to skip leading zeros if any.
|
||||||
@ -274,7 +274,7 @@ function(add_headers VAR)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# Define the fmt library, its includes and the needed defines.
|
# Define the fmt library, its includes and the needed defines.
|
||||||
add_headers(FMT_HEADERS args.h chrono.h color.h compile.h base.h format.h
|
add_headers(FMT_HEADERS args.h base.h chrono.h color.h compile.h core.h format.h
|
||||||
format-inl.h os.h ostream.h printf.h ranges.h std.h
|
format-inl.h os.h ostream.h printf.h ranges.h std.h
|
||||||
xchar.h)
|
xchar.h)
|
||||||
set(FMT_SOURCES src/format.cc)
|
set(FMT_SOURCES src/format.cc)
|
||||||
|
Loading…
Reference in New Issue
Block a user