mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-15 15:19:52 +00:00
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:
committed by
GitHub
parent
cf05b6c2f8
commit
23dc393822
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user