Skip to content

Commit

Permalink
Update to fmt v11.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Dec 26, 2024
1 parent adc428f commit 5ec55c2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.25...3.31)
include(cmake/prelude.cmake)

project(fmt
VERSION 11.0.2.1
VERSION 11.1.0.1
DESCRIPTION "A modern formatting library"
HOMEPAGE_URL https://fmt.dev/11.0/
LANGUAGES CXX
Expand Down Expand Up @@ -52,8 +52,8 @@ include(cmake/CPM.cmake)
cpmaddpackage(
NAME fmt
GITHUB_REPOSITORY fmtlib/fmt
GIT_TAG 11.0.2
VERSION 11.0.2
GIT_TAG 11.1.0
VERSION 11.1.0
DOWNLOAD_ONLY YES
)
# cmake-format: on
Expand Down
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_FLAGS":
"-fstack-protector-strong -Wall -Wextra -Wpedantic -Wno-conversion -Wno-sign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wno-implicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wno-old-style-cast"
"-fstack-protector-strong -Wall -Wextra -Wpedantic -Wno-conversion -Wno-sign-conversion -Wcast-qual -Wformat=2 -Wundef -Wfloat-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wno-implicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wno-old-style-cast"
},
"condition": {
"type": "equals",
Expand Down
2 changes: 1 addition & 1 deletion module/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if(PROJECT_IS_TOP_LEVEL)
enable_testing()

# Find the fmt package containing the function to build the module
find_package(fmt 11.0.2.1 EXACT REQUIRED HINT ../../stagedir/lib)
find_package(fmt 11.1.0.1 EXACT REQUIRED HINT ../../stagedir/lib)

# Use modules?
unset(USE_MODULES)
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include(../cmake/windows-set-path.cmake OPTIONAL)
if(PROJECT_IS_TOP_LEVEL)
enable_testing()

find_package(fmt 11.0.2.1 EXACT REQUIRED)
find_package(fmt 11.1.0.1 EXACT REQUIRED)
include(../cmake/CPM.cmake)
endif()

Expand Down
8 changes: 2 additions & 6 deletions tests/header-only-test.cc
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
// Header-only configuration test

#include <string_view>

#ifdef FMT_MODULE
import fmt;
#else
# include "fmt/base.h"
# include "fmt/ostream.h"
# include <string_view>
#endif


auto main() -> int
{
#ifdef FMT_MODULE
fmt::print("OK");
#else
constexpr std::string_view text{"constexpr"};
fmt::print(text);
#endif
}

0 comments on commit 5ec55c2

Please sign in to comment.