Codechange: Compile fmt internals in a separate translation unit (#13527)

Instead of defining FMT_HEADER_ONLY to include fmt internals
in the headers included by all fmt-using translation units.
This commit is contained in:
Jonathan G Rennison
2025-02-11 19:11:50 +00:00
committed by GitHub
parent cf05b6c2f8
commit 23dc393822
8 changed files with 53 additions and 4 deletions
+1
View File
@@ -260,6 +260,7 @@ target_precompile_headers(openttd_lib
src/stdafx.h
src/core/format.hpp
)
set_source_files_properties(src/3rdparty/fmt/format.cc PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
add_subdirectory(${CMAKE_SOURCE_DIR}/bin)
add_subdirectory(${CMAKE_SOURCE_DIR}/src)