From 6038812efab6c56d7c3a0a16cefb309655196e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Lalik?= Date: Fri, 24 Jan 2025 15:08:24 +0100 Subject: [PATCH] Fix error of unitialized variable FMT_HEADERS This happens when using e.g. pedantic mode in cmake-init. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c28ff071b352..9dc65084af5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -293,6 +293,7 @@ function(add_headers VAR) endfunction() # Define the fmt library, its includes and the needed defines. +set(FMT_HEADERS) # to fix warning of uninitialized 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)