Skip to content

Commit

Permalink
Readd core.h to headers
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Feb 10, 2024
1 parent 44c3fe1 commit 7a63e23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "MSDOS")
endif ()

# Get version from base.h
file(READ include/fmt/base.h core_h)
if (NOT core_h MATCHES "FMT_VERSION ([0-9]+)([0-9][0-9])([0-9][0-9])")
file(READ include/fmt/base.h base_h)
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.")
endif ()
# Use math to skip leading zeros if any.
Expand Down Expand Up @@ -274,7 +274,7 @@ function(add_headers VAR)
endfunction()

# 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
xchar.h)
set(FMT_SOURCES src/format.cc)
Expand Down

0 comments on commit 7a63e23

Please sign in to comment.