Skip to content

Commit

Permalink
Replace <format> with fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Jan 16, 2023
1 parent b0a177c commit e8594e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ endif ()

# Link libraries

# Link fmt
find_package(fmt REQUIRED)
target_link_libraries(standard fmt::fmt)
list(APPEND PCH_EXTRA <fmt/format.h> <fmt/printf.h>)

# Link Freetype
if (NOT USE_CONSOLE)
find_package(Freetype REQUIRED)
Expand Down
3 changes: 2 additions & 1 deletion src/StdStringEncodingConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@

#include "StdStringEncodingConverter.h"

#include <format>
#include <memory>
#include <stdexcept>
#include <string>

#include <fmt/format.h>

namespace
{
template<typename T>
Expand Down

0 comments on commit e8594e9

Please sign in to comment.